react-native-zip-archive icon indicating copy to clipboard operation
react-native-zip-archive copied to clipboard

cannot extract .zip file on android

Open mikestaub opened this issue 8 years ago • 2 comments

I ran into this exact problem today: https://stackoverflow.com/questions/15738312/how-to-fix-org-apache-commons-compress-archivers-zip-unsupportedzipfeatureexcept

java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor

I saw no obvious way to resolve this using the java.util.zip package, so I just used the org.apache.commons.compress.archivers.zip.ZipArchiveInputStream class instead as a hack workaround. I documented the neccessary changes in my branch here: https://github.com/mikestaub/react-native-zip-archive/commit/f8af246aa65387522539aa4a6c26bb5b6bf66216

I am creating this issue in case others run into the same problem, or that you know the proper solution.

mikestaub avatar Jun 19 '17 03:06 mikestaub

@mikestaub cool! maybe you could create a PR to solve this?

plrthink avatar Jun 19 '17 06:06 plrthink

Can you try the newest version of the module? Since it has been refactored and not operate the stream directly so I think this issue might not exist anymore.

plrthink avatar Nov 27 '20 06:11 plrthink