-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support 'deflate64'? #365
Comments
I have created an example as well and can add files larger than 4GB without problems. |
DEFLATE64 is not supported by any of the underlying libraries (zlib, zlib_ng, miniz_oxide - though zlib has some separate source code for decompressing it in it's contrib section). zip can handle >2G files fine with the normal deflate algorithm. The ZIP64 extension to the zip format is what's used for that to handle the 32-bit size issue from the original spec. That's is not the same thing DEFLATE64. Apparently the zip compressor in windows uses DEFLATE64 on >2G files still for whatever reason otherwise there wouldn't be much use for for libraries/apps dealing with the .zip format to have support for it as it doesn't seem to give all that much advantage over standard DEFLATE and there are better and more modern algorithms like LZMA etc if you want something better than DEFLATE. I don't know how much it differs from standard DEFLATE and how much it would take to e.g implement it in miniz_oxide. Since it's still not in zlib after all these years I wouldn't expect to see it in there any time soon. If support is added in one of the underlying libraries it would make sense adding the glue logic to swap method to flate2 as well but it's kinda borderline in scope here. If it differs enough that it would make more sense as a separate librarly to zlib/miniz_oxide it would probably not make sense to include with flate2. |
@Byron @oyvindln Thank you for your response! However, it seems like Windows would automatically use the @oyvindln I fully understood why the |
This popped up today: https://crates.io/crates/deflate64 |
Hope the zip-rs crate can leverage this and support deflate64 when unzip. |
Thanks for sharing! I think in order to resolve this particular problem, it's more likely that I am following the new issue over on |
I'm using the zip 0.66 crate on top of flate2. It seems like
deflate64
is not supported in flate2. Windows will use the deflate64 algorithm to zip files when the file size is 2G or more.Is there any plan to support
deflate64
?The text was updated successfully, but these errors were encountered: