This project is read-only.

Is this possible with SevenZipSharp?

Apr 27, 2009 at 3:50 AM
So, I'm passing a file stream to the deflatestream then the deflate stream to a third party dll that accepts to write to.
Streams has me so completely turned around. I'm not sure this is doable with SevenZipSharp.

using (FileStream ArcStream = new FileStream("C:\\arch.bak", FileMode.Create, FileAccess.Write, FileShare.None, BufferSize))
   using (DeflateStream CompressedBackupStream = new DeflateStream(ArcStream, CompressionMode.Compress))
      //invoke device to retrieve data stream

Apr 27, 2009 at 9:21 AM
It is not at the moment, but I think it will be in the future.
Apr 27, 2009 at 7:02 PM
Well, if I figure it out before you get it implemented I'll feed the code back into the project!

Jun 16, 2009 at 4:51 PM

Now it is possible with LzmaEncodeStream/LzmaDecodeStream classes.

Jan 14, 2016 at 4:10 PM

For some compatibility reasons, I would need the deflate compression and due to the ease of use I would prefer having a stream - like the one mentioned above. Can I somehow achieve that using the LzmaEncodeStream? I'm not an expert on compression but I guess Lzma != deflate, right?
There is also some CompressionMethod enum in the assembly (having some deflate value), but I don't know, how and where I can use this one.