I am trying to develop an application that reads a gziped http response from a http server, uncompress it and interpret the data. I am working on Symbian 5th edition SDK with Qt version 4.6.2.
I have a gzip compressed data in a QByteArray. I am using gzread() method of zlib library to uncompress it.
But gzread() is returing the number of bytes read as -2. When i call gzerror() with the same bytearray to get the error code, i am getting a user 42 panic. Can anyone help me in this?
Below in my code snippet
// response is a QByteArray that has a gzip compressed data.
// byteSize is an unsigned integer that has the size of the uncompressed data
int readBytes = gzread(response.data(), uncompressedData.data(), byteSize);
if(readBytes <= 0)
Thanks & Regards