views:

32

answers:

1

We're looking for a solution to keep thousands of html/image assets inside a .zip archive, and decompressing single files on-demand as a local web server needs access? More than a couple hundred files or so on the iPhone OS file system absolute kills the backup process, and is probably not advisable for the flash disk either.

Solutions we've looked at are of course zlib and the unzLocateFile and the nice Java classes ZipEntry (would be nice to have in C…).

unzLocateFile doesn't seem to take a relative path, which makes duplicate filenames inside different dirs complicated.

A: 

It seems unzLocateFile does indeed let you find and unzip individual files within a zip archive.

For reference, I found this page has some excellent code examples for doing just that: http://gpwiki.org/index.php/SDL:Tutorials:Displaying_a_Bitmap_from_a_zip_file_using_SDL_RWops_and_zlib

avocade