我正在为
Java应用程序创建备份例程.
但是,当zip文件超过4GB或大于65,000个文件时,zip文件已损坏.
但是,当zip文件超过4GB或大于65,000个文件时,zip文件已损坏.
我也在测试Apache Commons压缩压缩为tar.gz,但它的文件名限制为100个字符.
我想要测试这个API压缩压缩,但我不知道什么是java zip的问题.
所以真正的问题是:我做错了事情,限制Java Zip实现,还是Zip格式本身的限制?
谢谢.
解决方法
报价从
Wikipedia:
The original ZIP format had a 4 GiB limit on varIoUs things
(uncompressed size of a file,compressed size of a file and total size
of the archive),as well as a limit of 65535 entries in a ZIP archive.
关于ZIP64:
Java’s built-in java.util.zip does not support it as of September 2010,but it has been added to OpenJDK and is planned for inclusion in Java 7.