Pinku

Pinku

  • 1.4k
  • 292
  • 44.7k

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