By courtesy of Djembefola, this library is released as freeware for the benefit of the community. You should send him a big "thank you".
This library provides a basic support for Zip, Tar and Gzip archives (including TarGz). It can compress/uncompress synchronously or asynchronously (one task in the background at a time). This lib doesn't support encryption (but you can use it with encrypted files).
Its use is fairly simple. Examples:
This library is provided as-is and will not be extended to other formats. It uses the JTar library.
Don't forget to credit the authors if you include it in your application:
Frédéric Leneuf-Magaud & Kamran Zafar
v1.11:
I improved the synchronization of asynchronous operations (Async orders can be enqueued now);
The event declarations appear now with Space+Tab in the IDE.*
There's an improved version of this library for Zip files in my ProBundle that supports encryption and decryption.
This library provides a basic support for Zip, Tar and Gzip archives (including TarGz). It can compress/uncompress synchronously or asynchronously (one task in the background at a time). This lib doesn't support encryption (but you can use it with encrypted files).
Its use is fairly simple. Examples:
B4X:
Dim Arc As Archiver
Arc.Gzip(File.DirRootExternal, "test2.tar", File.DirRootExternal)
Arc.UnGzip(File.DirRootExternal, "test2.tar.gz", File.DirRootExternal & "/testTARgz2")
Arc.AsyncGzip(File.DirRootExternal & "/media/image", "test.jpg", File.DirRootExternal, "Arc")
Dim m As Map
Try
m = Arc.ListZipEntries(File.DirRootExternal & "/media/image/Icones", "android-icons.zip")
For i = 0 To m.Size - 1
Dim Info(3) As Long
Info = m.GetValueAt(i)
Log(m.GetKeyAt(i))
Log(" Uncompressed size = " & Info(0))
Log(" Compressed size = " & Info(1))
Log(" CRC = " & Info(2))
Next
Catch
Log(LastException.Message)
End Try
This library is provided as-is and will not be extended to other formats. It uses the JTar library.
Don't forget to credit the authors if you include it in your application:
Frédéric Leneuf-Magaud & Kamran Zafar
v1.11:
I improved the synchronization of asynchronous operations (Async orders can be enqueued now);
The event declarations appear now with Space+Tab in the IDE.*
There's an improved version of this library for Zip files in my ProBundle that supports encryption and decryption.
Attachments
Last edited: