filestream - Decode an LZMA stream c# -


i'm trying decode lzma stream stream object can read without hogging memory.

my input file looks like:

some uncompressed data . . lzma compressed data . . 

and i'd read uncompressed data, make stream object read rest of compressed data.

reading whole thing byte[] not option because file big. need stream (which must possible, because can zip large files)

i've tried using sevenzipsharp, lack of documentation makes impossible (not significant) experience make sense of.

any suggestions?

edit: reading file memory, decoding zip file file not enough.

you can use filestream.read method read uncompressed part of stream. after reading uncompressed part, method advances position of underlying stream beginning of compressed part becoming stream of compressed part can used decompression.

filestream.read fills byte array uncompressed data. parse contents, can use binaryreader this:

binaryreader reader = binaryreader(new memorystream(bytearray)); 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -