decompress

returns the plain text of a gzip-encoded string.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

decompress(gzippedString)

# Params

- gzippedString : A string of compressed binary data.

# Examples

decompress(tReceivedString)

put decompress(it) into URL "file:data.txt"

go stack decompress(URL "binfile:newstuff.gz")

# Description

Use the decompress function to regain the original data that was compress.

The decompress function is the inverse of the compress function.

The uncompressed result is typically about half again the size of the compressed data, although different results may be obtained depending on the amount of data.

For technical information about the format used by the compress and decompress functions, see [RFC 1952](https://tools.ietf.org/html/rfc1952). The decompress function uses the zlib compression library.

# Tags

# See

- **keyword:** string, inverse - **function:** base64Decode, compress, URLDecode - **glossary:** compress, return, function - **control structure:** function