e-CryptIt Engine - Compression Xojo Plugin

ZCompression.CompressBytes Method

To compress the data given by the Bytes parameter, it returns the result as a string. If there is an error then the error code is in the ErrorValue property.

CompressBytes(
   bytes as String) as String

Parameters

bytes
The string to compress.

Returns

String

Remarks

With a zip algorithm, it is always up to the implementation or the file format to know the size of the original data. So you have to store the original size yourself.

See Also

ZCompression Class