Yes, I know GZipStream or DeflateStream is the common ones in .NET Framework which handle compression/decompression.
I wish to have compress/decompress functions in my program, but
I wish a .NET Framework C# one, not a 3rd party open source. I can't use because of those copyright restrictions in my program.
GZipStream and DeflateStream are not so good. for e.g., GZipStream compress a file to 480KB while 7Zip compress the same file to the size of 57KB.
Does Microsoft have other good compression methods???
Thanks
DeflateStream
andGZipStream
use a combination of the LZ77 algorithm and Huffman coding (see msdn.microsoft.com/en-us/library/… and msdn.microsoft.com/en-us/library/…).Deflate
is the pure compression algorithm, whileGZipStream
includes a CRC checksum and could be extended by writing different compression algorithms (The current .net framework just implements that one compression algorithm). – Philip Daubmeier