Re: [HELP] Problems with ZipFileDownload Servlet

2008-11-21 Thread Romeryto Lira
Hi, I have the same mistake previous after deployment on tomcat. When I commented the line that close ZipOutPutStream, the download of file don't ocurr correctly, the file is corrupted. I uncommented the line, but the previous error continue, the mime type of zip file is lost. How to resolve thi

Re: Problems with ZipFileDownload Servlet

2008-11-11 Thread jay
If I'm not mistaken, you must set the "Content-Disposition" and contentType *before* you start writing to the output stream. On Nov 11, 10:02 am, "Romeryto Lira" <[EMAIL PROTECTED]> wrote: > I have problem with my zip download servlet. When I go to download, in the > window that open the mime tip

[HELP] Problems with ZipFileDownload Servlet

2008-11-11 Thread Romeryto Lira
I have problem with my zip download servlet. When I go to download, in the window that open the mime tipe of the zip file is lost. *snippet of code: *String fileName = request.getParameter("filename"); OutputStream out = response.getOutputStream(); ZipOutputStream zout = new ZipOutputStream(out)