Skip to content Skip to sidebar Skip to footer

Unzip Process Works On One Zip While It Doesnt On Another?

I've been trying to understand why my code doesnt work on a zip and it doesnt on another.. THIS zip unzips , and THIS zip doesnt Here is the code I use: String zipFile = Path + Fil

Solution 1:

Here's the actual error:

java.io.EOFException
    at java.io.RandomAccessFile.readFully(RandomAccessFile.java:383)
    at gnu.java.util.zip.ZipFile$PartialInputStream.fillBuffer(ZipFile.java:647)

Looks like your zip file is corrupt. WinRAR tends to ignore some kinds of corruption.

This is a personal gripe of mine - I believe it would be better if tools didn't do that sort of thing, because it means that whoever created the zip file probably doesn't know about the corruption either, and when you tell them, they will be all like, "but it isn't, look .. it opens in [insert broken app here]."

Post a Comment for "Unzip Process Works On One Zip While It Doesnt On Another?"