How do I decompress a string in java?
The string is compressed with zip and is encoded base64.
I decocoded the string, I copied the string to a zip file and I tryed to decompress using the sample script(class UnZip2) from here: http://java.sun.com/developer/technicalArticles/Programming/compression/.
The error is
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at UnZip2.main(UnZip2.java:12)
Decompression works with other archives.
I know the string is ok because the server where I send it makes a succesful decompression.