0

I'm developing an iOS application using objective-c. In that I'm receiving data from server in gzip byte array format.

Can anyone tell me how to decompress the byte array in desired objective-c format(NSData, NSArray or NSDictionary etc).

Rohitax Rajguru
  • 893
  • 2
  • 13
  • 35
  • This answer will help you for your gZIP query http://stackoverflow.com/questions/26991160/convert-base64-gzipped-string-objective-c-or-swift – CodeChanger Mar 08 '17 at 09:19

1 Answers1

0

I have used https://github.com/nicklockwood/GZIP which zips and unzips NSData with good results.

You can use [[NSData alloc] initWithBytes: bytesArray length:length]; to convert from a byte array to NSData.

Jon Rose
  • 8,373
  • 1
  • 30
  • 36