I am reading through the document of zlib, and it is fairly detail. But I read upon this line:
The output data will be in the zlib format, which is different from the gzip or zip formats
http://www.zlib.net/zlib_how.html
It seems that zlib creates zlib format which is not the same as zip format as is discussed in this SO:
How are zlib, gzip and zip related? What do they have in common and how are they different?
Any body know whether it is possible to create zip format with zlib? and how?
As @Jongware mentioned, you can find an example in the contrib/minizip
folder of the source code library.
OR !
You can simply use libzip.
Possible duplicate: Simple way to unzip a .zip file using zlib
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With