We are using ZipOutputStream for downloading a zip file. I'm having problems in opening this zip file in winzip 9.0 but the same file opens fine in winzip 8.0.
But when I write the same file using FileOutputStream and ZipOutputStream into the server that file opens fine in Winzip 9.0. The error I'm getting is "Start of central directory not found:zip file corrupt. Possible cause: File transfer error"
When I try to fix the problem using the Winzip command line Add-ON, it fixes the problem by saying the file has "extra 12 bytes at beginning of the file"
What could be the reason for having this extra 12 bytes only when I do a download but not when i write it into a file.
Please help me if you have any information on this.