This project is read-only.

How to set CompressionMethod and CompressionLevel on Static Class?

Jul 11, 2013 at 3:23 PM

I ran into a problem, as I wanted to compress a byte array with my favorite CompressionMethod and Level:
public byte[] Encode(byte[] inData)
            new SevenZipCompressor { CompressionMethod = CompressionMethod.Lzma, CompressionLevel = CompressionLevel.None };
            return SevenZipCompressor.CompressBytes(inData);
How can I set CompressionMethod and Level in this case?

Thanks for any hints and help!