Just wanted to share a very simple code example to compress and decompress in c#.net.
Here it goes.
If you are trying to compress and de-compress a file then use this to read into a file.
To Read from File
byte rawData = File.ReadAllBytes(FileName);To Write to a File