How to decode gzip data?

2019-03-01 09:45发布

问题:

I have a variable data , the type of variable is: TIdBytes.

Variable contains some data encoded with gzip.

How to decode this data?

回答1:

If you want to decode the data manually, then look at the DecompressGZipStream() method of the TIdCompressorZLib component, or the TDecompressionStream class or Indy/DecompressStream() functions in the IdZLib.pas unit.



标签: delphi gzip