This tag performs Gzip compression on some data and returns the result. Gzip compression is similar to the Zlib compression which Lasso's [compress] tag returns, but has a different wrapper around the compressed data.
The wrapper starts with a header that includes flags which identify the file as including Gzip compression, the date and time the data was compressed, and the optional name of the file. This is followed by data compressed using the "deflate" algorithm. The wrapper concludes with a 32-bit CRC checksum and the original size of the data before compression. These final values are used by the decompressor to check that the compressed data wasn't altered in transit.
Lasso's built-in [compress] tag performs Zlib compression which uses the same "deflate" algorithm as Gzip compression, but has a different wrapper. In order to get the compressed data for the Gzip compression we simply strip the Zlib wrapper off the output of the [compress] tag.
The 32-bit CRC checksum for the data is returned using the [Encode_CRC32] tag which is implemented natively in Lasso 8.1 and higher.
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.