Is this possible with SevenZipSharp?

Apr 27, 2009 at 2:50 AM
So, I'm passing a file stream to the deflatestream then the deflate stream to a third party dll that accepts system.io.stream 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
       Device.ExecuteCommand(CompressedBackupStream);
   }
}

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

Thanks,
Wes
Coordinator
Jun 16, 2009 at 3:51 PM

Now it is possible with LzmaEncodeStream/LzmaDecodeStream classes.

Jan 14, 2016 at 3:10 PM
Hello!

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.

BR,
Thomas