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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.
Your password has been sent to:email@example.com
To follow this tag...
Thanks! We'll email you when relevant content is added and updated.
Share this item with your network: