Inflate large files in iOS with QZipReader
Has anyone had any luck unzipping a large zip file (250MB) in iOS?
I have successfully used QZipReader and QZipWriter classes for handling large files (following Bryan’s excellent tutorial at: http://voidrealms.com/index.php?r=tutorial/view&id=365) on OSX and Android, but when I deploy my project to iOS, I get a memory error. In particular, my iPad does not want to fetch all the inflated data into memory before writing it to file.
Has anyone had any success accessing zlib’s inflate method within a loop that reads chunks / writes them to file in each pass, until Z_STREAM_END is returned?
Hi and welcome to devnet,
Unless I'm mistaken "this":http://www.zlib.net/zpipe.c example shows what you want to do.
Hope it helps