views:

195

answers:

0

Hello friends,

I am using socket connection to get data from the server. Socket stream is compressed with gzip format. Now at iPhone side I am using this code to decompress it. But unfortunately I am getting Null string.

Actually Data is compressed and then encoded. I am decoding my data and then trying to decompress it. (I have verified decoding algorithm).

What precaution do I have to take while retrieving gzip compressed stream?

Waiting for Reply

Thanks Pratik