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).
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).
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.