GZip Functions and Properties

The GZip function can be used to compress/decompress a string or a byte array.

compress

Description

Compresses the string or byte array into GZip format.

Syntax

GZip.compress($content)

Where $content is a string or binary data.

Example

Expression: GZip.compress($content)

Result: Returns $content as a GZipped byte array.

decompress

Description

Decompresses a GZipped string or byte array.

Syntax

GZip.decompress($content)

Where $content is a string or binary data.

Example

Expression: GZip.decompress($content)

Result: Returns $content as an unzipped byte array.