开发者

Best approach to decompressing individual files by relative path inside zip archive

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 t开发者_开发知识库he 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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜