Skip to content
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

Compression Method "deflate (enhanced)" (deflate64) Unsupported #525

Open
bmlong137 opened this issue Nov 22, 2023 · 2 comments
Open

Compression Method "deflate (enhanced)" (deflate64) Unsupported #525

bmlong137 opened this issue Nov 22, 2023 · 2 comments

Comments

@bmlong137
Copy link

Large ZIP files (2+ GB) created by the built-in Windows ZIP tool will use deflate64 when creating those ZIP files. This is flat-out not supported by zip4j. It errors with the expected:

Caused by: net.lingala.zip4j.exception.ZipException: Unknown compression method
        at net.lingala.zip4j.model.enums.CompressionMethod.getCompressionMethodFromCode(CompressionMethod.java:52) ~[zip4j-2.10.0.jar:?]
        at net.lingala.zip4j.headers.HeaderReader.readLocalFileHeader(HeaderReader.java:539) ~[zip4j-2.10.0.jar:?]

This issue would only be resolved by adding support for that compression method.

@bmlong137
Copy link
Author

I am going to look into adding this feature myself.

@bmlong137
Copy link
Author

Here is a pull request with the feature added: #526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant