How can I decompress a gzip stream with zlib?
Posted
by Greg Hewgill
on Stack Overflow
See other posts from Stack Overflow
or by Greg Hewgill
Published on 2009-12-03T09:19:39Z
Indexed on
2010/06/02
6:33 UTC
Read the original article
Hit count: 335
Gzip format files (created with the gzip
program, for example) use the "deflate" compression algorithm, which is the same compression algorithm as what zlib uses. However, when using zlib to inflate a gzip compressed file, the library returns a Z_DATA_ERROR
.
How can I use zlib to decompress a gzip file?
© Stack Overflow or respective owner