aspose file tools*
The moose likes Java in General and the fly likes Problem unzipping with java.util.zip APIs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem unzipping with java.util.zip APIs" Watch "Problem unzipping with java.util.zip APIs" New topic
Author

Problem unzipping with java.util.zip APIs

Richard Everhart
Ranch Hand

Joined: Nov 19, 2003
Posts: 54
This isn't post on how to actually use the APIs. What I was wondering if anyone else out there has encounterd compatibility problems with unzipping utilities based on java.util.zip and commercial archiving apps, like Winzip or /n Software's IPWorks! Zip.

I've written a small app that just unzips zip files that are sent to us via ftp. The unzipping part uses the java.util.zip APIs to do the real work. The problem is that one of our clients uses IPWorks! Zip and the app I wrote chokes whenever it tries to unzip their files.

I've been doing some research on zlib version IPWorks is based on and the version that Java uses, but it seems they are based on the same spec. (zlib spec defined in RFC 1950 and deflate spec defined in RFC 1951). At least, after looking at /n Software's site, that's what I gathered. When checking out Winzip's site I found that they may adhere to some later version of zip file format spec.

So, has anyone run into this, and if so what did you find out? Are the java.util.zip APIs based on out-dated specs? Any info much appriciated.

Rich
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem unzipping with java.util.zip APIs