AlivePDF
AlivePDF copied to clipboard
Zipoutputstream response.setHeader downloads corrupt zip file
What steps will reproduce the problem?
1. can see that the zip file contains extra bytes.
2. able to open with 7zip(automatic zip repair tool) windows display message
"compressed folder is corrupted" something.
3.
What is the expected output? What do you see instead?
- Zip file should open on double click.
What version of the product are you using? On what operating system?
- JDK 1.5, Bea 9.2, Unix.
Please provide any additional information below.
Application has a jsp which reads ByteArrayOutputStream and writes it to the
zipoutput stream. Later user is asked by dialouge box to open or save the zip
file, which indeed is a corrupt file. Closing and flushing of streams is
working good however not able to understand why the file is corrupt.
- Any help would be appreciated.
Original issue reported on code.google.com by [email protected] on 22 May 2011 at 11:56