E aí,
tenho uma classe que faz o download de arquivos, funciona beleza, mas os arquivos são baixados sem extensão no Firefox.
Esse é um trecho do código:
[code]
FileInputStream fileInput = new FileInputStream(
file);
BufferedInputStream bufferedInput = new BufferedInputStream(
fileInput);
stream = new byte[(int) file.length()];
bufferedInput.read(stream, 0, (int) file.length());
bufferedInput.close();
res.addHeader("Content-Disposition",
"attachment; filename="
+ arquivoProf.getNome());
res.setContentType("application/octet-stream");
ServletOutputStream outStream = res
.getOutputStream();[/code]
Valeu!