1

in my program i have to unzip downloaded file ... i read libz.dylib is used for that but i didn't find any documentation or examples how to do that..?

any one know this...

Thanks in advance....

Glenn Randers-Pehrson
  • 11,940
  • 3
  • 37
  • 61
  • This is a duplicate of these questions: http://stackoverflow.com/questions/1230351/is-there-any-zip-decompression-for-iphone, http://stackoverflow.com/questions/230984/compression-api-on-the-iphone – Brad Larson May 07 '10 at 16:27
  • NSString *saveLocation = @"/Volumes/Extra/samples/unzipTest/song.zip"; NSData *zipData=[[NSData alloc] initWithContentsOfFile:saveLocation]; bool b= [[zipData zlibDeflate] writeToFile:@"/Users/admin/Desktop/untitled folder" atomically:YES]; i am doing this but it failing to unzip where i am wrong. –  May 10 '10 at 09:01
  • Search the net for "zlib" to find documentation of libz. – Glenn Randers-Pehrson Mar 02 '14 at 20:32

1 Answers1

3

I'm not exactly answering your question, but you could use ZipKit. It is an Obj-C framework for using zip files.

Marco Mustapic
  • 3,879
  • 1
  • 21
  • 20