uzing libgz to inflate a gz input

Posted by Pierre on Stack Overflow See other posts from Stack Overflow or by Pierre
Published on 2010-06-13T19:18:54Z Indexed on 2010/06/13 19:22 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

Hi all, I'm currently trying to use the zlib to inflate a source of gzipped data.

It seems that the inflate API in zlib cannot inflate a gzipped data ( The example http://www.zlib.net/zpipe.c fails to read a gzipped file: "zpipe: invalid or incomplete deflate data" ). I noticed that there is a gzopen function in this API, but , as far as I understand, it only works with a filename or a file descriptor.

Can I use this API if my source of gzipped data is stored in memory, in a sql blob, etc... ?

Many Thanks

Pierre

© Stack Overflow or respective owner

Related posts about c

    Related posts about gzip