I am unfamiliar with compression algorithms. Is it possible with zlib or some other library to decompress, modify and recompress only the beginning of a gzip stream and then concatenate it with the compressed remainder of the stream? This would be done in a case where, for example, I need to modify the first bytes of user data (not headers) of a 10GB gzip file so as to avoid decompressing and recompressing the entire file.
相关问题
- How can I decrease the amount of time it takes to
- How do I signal to a web server that I'm posti
- Express: Serve pre-compressed static assets
- gzip raised OverflowError: Size does not fit in an
- How to build Python 3.4.6 from source?
相关文章
- Using zlib under windows mingw
- Fiddler doesn't decompress gzip responses
- php zlib: How to dynamically create an in-memory z
- Downloading a csv.gz file from url in Python
- Is it possible to have zlib read from and write to
- IE8 not sending Accept-Encoding: gzip, deflate
- PHP - compress static css file with GZIP
- Decompressing a gzipped payload of a packet with P
No. Compression will generally make use of the preceding data in compressing the subsequent data. So you can't change the preceding data without recompressing the remaining data.
An exception would be if there were breakpoints put in the compressed data originally that reset the history at each breakpoint. In zlib this is accomplished with
Z_FULL_FLUSH
during compression.