Skip to main content

Binary.Decompress

Decompresses a binary value using the given compression type.

Syntax

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

Remarks

Decompresses a binary value using the given compression type. The result of this call is a decompressed copy of the input. Compression types include:

  • Compression.GZip
  • Compression.Deflate

Examples

Example #1

Decompress the binary value.

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