1

I am looking for an easy way to decompress a gzip-compressed file on iOS. I found the libs "SSZipArchive" and "Objective-Zip" but I can't get neither to work.

My impression is that both try to handle my file as a zip archive and therefore fail to handle my gz file. (How can I prove my assumption to be true?)

Do I have to use other methods to tell either one that I have a gzip compressed file?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Jens
  • 6,243
  • 1
  • 49
  • 79

1 Answers1

0

Use zlib. It's already part of the SDK.

Mark Adler
  • 101,978
  • 13
  • 118
  • 158
  • Thanks. I ended up using the NSData category from @BradLarson [answer](http://stackoverflow.com/a/234099/332248). – Jens May 21 '14 at 09:10