Objective-C - access files in zip without extracting zip

I am looking for a way to access files in a zip file without extracting the entire file. All the zip solutions that I find on the Internet seem to extract the whole zip code. Does anyone know of a solution?

+6
source share
3 answers

Google has objective-c lib based on minizip. http://code.google.com/p/objective-zip/ Support for unpacking individual files

EDIT: The project has moved to GitHub

+3
source

The zlib library distribution contains the directory 'contrib'. In it you will find a library called "minizip" (the same license as zlib itself), which has an API for creating (zip.h) and navigation / unpacking (unzip.h) ZIP files. Despite the file name, unzip.h has functions that allow you to browse or search files in a zip file without extracting it.

+2
source

If the zip is on the Internet, you can look at the pinch , which allows you to extract individual files from the zip without downloading the entire file.

https://github.com/epatel/pinch-objc

Perhaps you can use it as a base to extract individual files from a local zip archive.

+1
source

Source: https://habr.com/ru/post/909628/


All Articles