How to set CompressionMethod and CompressionLevel on Static Class?

Jul 11, 2013 at 3:23 PM
Hi,

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!

Regards
Rainer