byronmeyer
Registered user
We are using ZipOutputStream for downloading a zip file. I am 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 am 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
Thanks
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 am 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
Thanks