mockingbot / react-native-zip-archive

Zip archive utility for react-native
MIT License
420 stars 154 forks source link

fix: use net.lingala.zip4j.ZipFile to unzip to prevent cannot unzip large file (Zip64 related issue) #286

Closed bdtren closed 1 year ago

bdtren commented 1 year ago

Hi, In my project, I have one zip file 270MB(compressed) and 1 entry 4.9GB. The issue is it cannot be unzip since the size is too big, I replicated it in Android only (iOS working fine).

The issue gone when I updated to java 8, use Apache ZipArchiveInputStream and set Zip64Mode.AsNeeded. But that required so many steps. So I tried unzip usingnet.lingala.zip4j.ZipFile and think it is a better solution since it is already in the project.

plrthink commented 1 year ago

Excellent, this is something I planned but never got started.

I would review and publish this in a day.

plrthink commented 1 year ago

Pls resolve the conflicts introduced by another PR being merged, and I will publish it ASAP

plrthink commented 1 year ago

How can I help you about the resolving the conflicts?

bdtren commented 1 year ago

Ah no worry, I closed this since it is included in the other one that is merged.

plrthink commented 1 year ago

Ok, just published the updates as v6.1.0.

And, would you like to also update the README?