Manas Sahu

Manas Sahu

  • 1.7k
  • 160
  • 5.6k

DeflateStream error showing Found invalid data while decodin

Feb 9 2020 11:35 PM
using (System.IO.Compression.DeflateStream deflateStream = new System.IO.Compression.DeflateStream(responseStream.GetResponseStream(), System.IO.Compression.CompressionMode.Decompress))
{
var sr = new StreamReader(deflateStream);
body = sr.ReadToEnd();
}
 
getting error  invalid data while decoding