Deflate Compression Stream where pre compressed Data can be inserted. Does a .NET lib exist?

后端 未结 3 512
走了就别回头了
走了就别回头了 2021-01-15 04:14

I\'m implementing Deflate and GZip compression for web content. The .NET Framework DeflateStream performs very well (it doesn\'t compress that good as SharpZipLib, but it is

3条回答
  •  北海茫月
    2021-01-15 04:48

    Another approach is to flush the deflater stream (and possibly also close it), to guarantee that all buffered compressed data is written to the output stream, and then simply write your precompressed data to the underlying output stream, then re-open the deflater stream on top of your output stream again.

提交回复
热议问题