解壓縮應該使用zlib壓縮atm的文件時出現問題。 該文件是一個icecache文件使用zlib的未知壓縮方法
這是從文檔:
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
我使用計算器的代碼: Zlib compression Using Deflate and Inflate classes in Java
我倒掉出主方法和添加的代碼作爲Java文件處理(Java方言)。
,所以我有
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);
}
}
我得到以下錯誤: java.util.zip.ZipException:未知的壓縮方法
這裏的文件: https://dl.dropboxusercontent.com/u/17630770/temp/pc_oj_simple_AnimTake1_11.icecache.zip
我ASLO壓縮一個txt文件並再次解壓縮,這工作得很好。
我該如何繼續弄清楚什麼是錯的?
什麼是你試圖解壓縮文件的計算機體系結構的字節順序是什麼,以及你試圖運行程序的計算機體系結構的字節順序是什麼? – statueuphemism
該文件來自Windows,可能是64位,但不確定。我嘗試在mac 64位上解壓縮它。 – clankill3r
對不起,我要求小端和大端信息。在那些具有小端字節順序的機器中,很可能是AMD或Intel芯片,所以字節順序可能不是你的問題。 – statueuphemism