2 expressions to use:
- Deflate.Compress(string, compression-level)
Compression-level can be 1 (poor but fast) to 9 (best but slowest)
The "Compress" function also encode the compressed data using Base64, the string passed to the decompress function should also be Base64 encoded.
Note: Base32k plugin "compress" better sometime (depend on data) but Deflate can be used with Base32k to compress even more (up to 2.5x, look at the demo), it is slower though.
Demo Deflate+Base32k: https://dl.dropbox.com/u/64479453/C2_Plugins/DeflateDemoWithBase32k/index.html
.capx (need Base32k plugin): https://dl.dropbox.com/u/64479453/C2_Plugins/DeflateDemoWithBase32k.capx