简体   繁体   中英

How do I “unzip” a gzipped stream while reading it

My program is using HTTP to read files over the network. 文件。
I need my program to be able to unzip the content and parse it even when not all the gzipped file arrived yet.
Can it be done ?
If so, can it be done in C++ ? If so, how ?

You could probably try out the gzstream library:

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

http://www.zlib.net/

Zlib is able to read gzip. Have a look at the manual. http://www.zlib.net/manual.html#Gzip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM