How to decompress gzipstream with zlib

后端 未结 4 1075
走了就别回头了
走了就别回头了 2020-12-20 22:01

Can someone tell me which function I need to use in order to decompress a byte array that has been compressed with vb.net\'s gzipstream. I would like to use zlib.

I\

4条回答
  •  一整个雨季
    2020-12-20 22:52

    You need to use inflateInit2() to request gzip decoding. Read the documentation in zlib.h.

    There is a lot of sample code in the zlib distribution. Also take a look at this heavily documented example of zlib usage. You can modify that one to use inflateInit2() instead of inflateInit().

提交回复
热议问题