Relative Content

Tag Archive for compressionzliblarge-filesminizip

Minizip not working to compress file that has size > 4 GB

My program uses minizip(zlib- version 1.2.3) to compress an xml file. When the xml file size is greater than 4 GB(in fact
the max value of int 32 – 4294967295) then I find that when I try to extract the compressed file it gave me an unexpected error 0x80004005 (able to extract via 7zip).
I believe the zipping did not work properly.
If I check the size of the xml file then the size =(total bytes in the file) -(max value of int32). Please see the screenshot.
Size of zip file which is what remains after reducing the 4 GB