I have a method
private static String DecompressAndDecode(byte[] data)
{
GZipStream decompressor = new GZipStream(new MemoryStream(data), CompressionMode.
Create your own custom function. It'll take the path as a parameter:
static string read(string path)
{
StreamReader sr = new StreamReader(@path);
string txt = "";
while (!sr.EndOfStream) {
txt += sr.ReadLine() + "\n";
}
sr.Close();
return txt;
}
Then call it instead of the call to ReadToEnd(). I tested it, and it worked.