Search the archives for "Content-Disposition"

Manuel Gil Perez wrote:
Hi all.

I have a servlet that reads a file from disk and it returns as output stream
in the servlet (octect-stream). From web browser, when I execute this
servlet the file is stored with the servlet name. How can I change this name
to the file name??

Regards...

Manuel Gil.

---

  ServletOutputStream toClient = response.getOutputStream();
  res.setContentType("application/octet-stream");
  toClient.write(file_bytes);
  toClient.close();
  return;


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to