此代码接收 GZip 编码的字符串。我怎样才能解码它?
Stream stream = ret.GetResponseStream();
System.IO.StreamReader reader = new System.IO.StreamReader(stream, Encoding.Default);
string answer = reader.ReadToEnd();//answer is GZip encoded string !
byte[] bytes = Encoding.Default.GetBytes(answer);
//???
GZipStream compStream = new GZipStream(stream, CompressionMode.Decompress);
// ... what's next?