title: Unhandled Exception: FormatException: Unexpected extension byte (at offset 5)
body: <p>The Json response has an gzip encoded string.</p>
  <pre><code> var dataList = [
      {&quot;Data&quot;: &quot;compressedata&quot;},
      {&quot;Data&quot;: &quot;compressedData&quot;}
    ];
  </code></pre>
  <p>I tried so many methods to decompress the string but could not get the expected results. The final way tried was</p>
  <pre><code>  List&lt;int&gt; res = base64.decode(base64.normalize(zipText));
  
    print(utf8.decode(res));
  </code></pre>
  <p>where zipText is the String from json, which throws error</p>
  <pre><code>Unhandled Exception: FormatException: Unexpected extension byte (at offset 5)
  </code></pre>
  <p>Another way</p>
  <pre><code>  Uint8List compressed = base64.decode(zipText);
    var gzipBytes = new GZipDecoder().decodeBytes(compressed);
    print(gzipBytes);
  
  </code></pre>
  <p>Throws error</p>
  <pre><code>Unhandled Exception: FormatException: Invalid GZip Signature flutter
  </code></pre>
  <p>Any help is really appreciated.</p>