decompress

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
decompress(<gzippedString>)
the decompress of <gzippedString>
Summary

Returns the plain text of a gzip-encoded string.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
gzippedString

A string of compressed binary data.

Example
decompress(tReceivedString)
put decompress(it) into URL "file:data.txt"
go stack decompress(URL "binfile:newstuff.gz")
Values
NameTypeDescription
return

The decompress function returns a string.

RelatedKeyword: string, inverse
Function: base64Decode, compress, URLDecode
Glossary: compress, return, function
Control Structure: function
Description

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

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. The decompress function uses the zlib compression library.

Tagstext processing