I found the zlib and gzip decompression algorithms, but I need to compress the whole directory and download it from the server. Rather, the file will not go at a time.
Thanks.
ziparchive , the acsolu Google Code project provides an iPhone-compatible Objective-C wrapper around minizip. With a little adaptation, I found it useful to use unboxing on the iPhone, as you described.
I got lucky using minizip on the iPhone.
I listened to a meeting at Tacow in Toronto, where Karl Kolpanic made a presentation about his ZipKit base, which he said was also compatible with iPhone development.
This is available at BitBucket.org: http://bitbucket.org/kolpanic/zipkit/