N
nagrik
Hello Group,
I am writing a http client and reading a web page from the server. The
page can be compressed in any
of the format namely; gzip or deflate or compress. My client reads the
page in chunks from the socket
and then passes on the decompressed data to the user.
I am makeing use of zlib APIs to decompress the data read from the
server.
The problem I am having is that these APIs can only compress the data
if it is in a file,, whereas my
requirement is to decompress the data from the buffer.
Can someone tell me with a better solution or must I first put the read
data from socket into the file and
then decompress data by using the zlib APIs.
Thx.
nagrik
I am writing a http client and reading a web page from the server. The
page can be compressed in any
of the format namely; gzip or deflate or compress. My client reads the
page in chunks from the socket
and then passes on the decompressed data to the user.
I am makeing use of zlib APIs to decompress the data read from the
server.
The problem I am having is that these APIs can only compress the data
if it is in a file,, whereas my
requirement is to decompress the data from the buffer.
Can someone tell me with a better solution or must I first put the read
data from socket into the file and
then decompress data by using the zlib APIs.
Thx.
nagrik