如何解码gzip数据? [英] How to decode gzip data?
本文介绍了如何解码gzip数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个变量 data
,变量的类型是: TIdBytes
。
I have a variable data
, the type of variable is: TIdBytes
.
变量包含一些使用gzip编码的数据。
Variable contains some data encoded with gzip.
如何解码此数据?
推荐答案
如果要手动解码数据,请查看的
组件,或 DecompressGZipStream()
TIdCompressorZLib TDecompressionStream
类或 Indy / DecompressStream()
code> IdZLib.pas 单位。
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.
这篇关于如何解码gzip数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文