How to "unzip" a gzip stream while reading

My program uses HTTP to read gzipped files over the network.
I need my program to be able to unpack the contents and parse it, even if not all gzipped files are yet. It can be done?
If yes, can this be done in C ++? If so, how?

+4
source share
2 answers

Perhaps you can try the gzstream library:

Gzstream is a small C ++ library, basically just a wrapper, which provides the zlib C-library functionality in C ++ iostream. It is freely available under the LGPL license.

+7
source
+4
source

Source: https://habr.com/ru/post/1304745/


All Articles