Complete disassembly and installation guides for most recent Mac laptops and consumer desktops.

26953 Questions View all

Problem opening a downloaded zip file in winzip 9.0

We are using ZipOutputStream for downloading a zip file. Iam having problems in opening this zip file in winzip 9.0 but the same fiel 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 iam 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

Answered! View the answer I have this problem too

Is this a good question?

Score 0
Add a comment

2 Answers

Chosen Solution

All what you need is to follow next instructions, and via Windows instrument you may do it..

- Click on the "Start" button, click on "All Programs" and then go into "Accessories."

- Right-click on the "Command Prompt" program and select "Run as administrator."

- Type "cd directory_path_to_zip" where "directory_path_to_zip" is the fully qualified path to the corrupted zip file, such as "C:\Windows\" if your ZIP file is located in the Windows directory on your computer.

- Press the "Enter" key and then type "c:\windows\system32\wzzip -yf corrupt_zip.zip" where "corrupt_zip.zip" is the name of the ZIP file you want to try and recover.

- Press the "Enter" key and Windows attempts to fix the corrupt ZIP file. If this process is successful, a new ZIP file is created in the directory alongside the corrupt zip file with the same name as the corrupt zip file, only with the suffix "FIXED" on the end.

Some links which might be helpful to you...

http://itknowledgeexchange.techtarget.co...

http://www.reddit.com/r/Winzip/comments/...

Was this answer helpful?

Score 1
Add a comment

I don't think this is the right community to assist in debugging your Java application.

The second answer on this stack overflow may be pertenent:

http://stackoverflow.com/questions/14462...

Was this answer helpful?

Score 0
Add a comment

Add your answer

carmelobeach will be eternally grateful.
View Statistics:

Past 24 Hours: 1

Past 7 Days: 11

Past 30 Days: 52

All Time: 252