B4A Library [Lib] Archiver

Marcio Almeida

Member
Licensed User
Longtime User
Hi guys! I'm having difficulty unzip a 13.7mb file. Below the file link and code I currently use:

Code:
arc.UnZip(fileDir, fileZipNameFotos, fileDirFotos, "")
or arc.AsyncUnZip(fileDir, fileZipNameFotos, fileDirFotos, "UnZipFotos")

Link:
http://www.wmesistemas.com.br/temp/fotosprodutos.zip


The strange thing is that with smaller files this is working properly.

Thanks a lot!
 

aidymp

Well-Known Member
Licensed User
Longtime User

A few years ago I had terrible problems with zips, at the time there was a paid library ArchiverPlusZip it worked straight away. It is part of the excellent ProBundle . And
It is now FREE and can be found here. https://www.b4x.com/android/forum/threads/probundle-chargeable.58754/#content

Hope that helps.
 

b4x-de

Active Member
Licensed User
Longtime User
Hi,

in version 1.11 of that library I'm experiencing the problem that arc.UnZip() and arc.AsyncUnZip() behave differently regarding directories inside the zip archive.

While arc.UnZip() is unzipping directories recursively arc.AsyncUnZip() does not. Does someone else experiencing the same problem?

Thanks,
Thomas
 

Informatix

Expert
Licensed User
Longtime User
Since AsyncUnzip calls internally Unzip, I can't see how the result could be different. If it's really the case, then the problem lies in the part of the code that I cannot change (the Android java.util.zip package).
 

JohnC

Expert
Licensed User
Longtime User

DonManfred

Expert
Licensed User
Longtime User
In the below post, the user says that this Archive Lib crashes on Android 8.0+, is this true?
i tried the example using targetsdk 26 on my Android 9 device. It does not crash.
i tried the example using targetsdk 28 on my Android 9 device. It does not crash.

Edit to add: I used ArchiverPlus 1.12
 

JohnC

Expert
Licensed User
Longtime User
i tried the example using targetsdk 26 on my Android 9 device. It does not crash.
i tried the example using targetsdk 28 on my Android 9 device. It does not crash.

Edit to add: I used ArchiverPlus 1.12
Thanks for the quick reply - I'll give it a try!
 

JohnC

Expert
Licensed User
Longtime User

JohnC

Expert
Licensed User
Longtime User
I am getting another weird issue with this lib which seems to suggest that the "Wait for" event is triggered before your zip method completes:

 

Informatix

Expert
Licensed User
Longtime User
Wrong thread.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…