how to unzip bytes in memory
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
I read the characters from local file compressed by gzip, and want to uncompress the characters into another bytes buffer, not into local file. How can I get it.
Perhaps with the zLib library?. It is what gzip used in the first place, after all. With the added advantage of not needing to load the file first, and the additional bonus of being able to seek/read from a compressed file as though it were a standard non-compressed file. zLib gzip file access functions[^]
-
I read the characters from local file compressed by gzip, and want to uncompress the characters into another bytes buffer, not into local file. How can I get it.
Using managed GZipStream[^] class. For unmanaged apps check CGzip[^] class found in codeproject.