I know there is system.io.compression.gzipstream but it accept a stream as arguments.
I'm looking for a method that accept string
eg.
string compress(string stringtocompress,compressionlevel level);
string decompress(string stringtodecompress);
I know there is system.io.compression.gzipstream but it accept a stream as arguments.
I'm looking for a method that accept string
eg.
string compress(string stringtocompress,compressionlevel level);
string decompress(string stringtodecompress);
Please try below, based on this url : http://dreamstatecoding.blogspot.com/2013/04/c-array-compress-and-decompress-with.html. We avoid to use double MemoryStream.
you should try this: