Seeking System.IO.Compression.DeflateStream

Started by
-1 comments, last by Quat 11 years, 7 months ago
I am reading a file where only parts of the file have ZLIB compression. At the start, I create a FileStream to the file, then create a BinaryReader for reading non-compressed data, and a DeflateStream for reading compressed data. So eventually I will obtain the data marking a chunk of compressed data:

(byteOffset, compressedByteLength)

So I would like to take my DeflateStream object and Seek to position byteOffset. However, the DeflateStream object is not seekable, so what do I do?
-----Quat

This topic is closed to new replies.

Advertisement