LassoScript Utility
Basics Browse Detail


Tag Link [Compress] Category Technical
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


[Compress] compresses a string using the zlib compression algorithm. This tag can be used to compress data for more efficient transmission or to preserve space in a database.

Note: The compression algorithm is only efficient on large amounts of data. For short strings of less than 256 characters the compressed value may actually be longer than the uncompressed string.


[Compress: 'Compression Value']


Required Parameters
Compression Value The value which is to be compressed.


To compress a string:

Use the [Compress] tag. The following example compresses a string and returns the results. The value is passed through [Encode_URL] for example purposes to ensure that the binary data can be displayed.

[Encode_URL: (Compress: 'The quick brown fox jumped over the lazy dog.')]