跳至主要内容

Binary.Decompress

使用指定的壓縮類型將二進位值解壓縮。

Syntax

Binary.Decompress(
binary as binary,
compressionType as Compression.Type
) as binary

Remarks

使用指定的壓縮類型解壓縮二進位值。此呼叫的結果為輸入的解壓縮複本。壓縮類型包括:

  • Compression.GZip
  • Compression.Deflate

Examples

Example #1

將二進位值解壓縮。

Binary.Decompress(#binary({115, 103, 200, 7, 194, 20, 134, 36, 134, 74, 134, 84, 6, 0}), Compression.Deflate)

Result:

#binary({71, 0, 111, 0, 111, 0, 100, 0, 98, 0, 121, 0, 101, 0})

Category

Binary