I have a problem uncompressing a file that should be compressed atm with zlib. The file is a icecache file
This is from the documentation:
Cache files are created on a per object and per frame basis. Each file is a zip archive, utilizing the ZLIB library to save and load directly using a zip-stream. located at: http://softimage.wiki.softimage.com/index.php?title=Icecache_File_Format
I used the code from stackoverflow: Zlib compression Using Deflate and Inflate classes in Java
I throwed out the main method and added the code as a java file to processing (java dialect).
So i have
void setup() {
File compressed = new File(sketchPath+"/pc_oj_simple_AnimTake1_11.icecache");
println(compressed.exists());
try {
ZlibCompression.decompressFile( compressed, new File(sketchPath+"/pc_oj_simple_AnimTake1_11.icecacheDecomp"));
}
catch (IOException e) {
println(e);
}
}
I get the following error: java.util.zip.ZipException: unknown compression method
here is the file: https://dl.dropboxusercontent.com/u/17630770/temp/pc_oj_simple_AnimTake1_11.icecache.zip
I aslo compressed a txt file and decompressed it again, this worked fine.
How can i continue to figure out what is wrong?