Contents - Index - Previous - Next
ZLibCompressString method
Applies to
TVCLZip component
Declaration
function ZLibCompressStr(const s: string; HttpCompression: Boolean = False): string;
Description
Returns the String result of compressing the string s that is passed in. The data in the returned string will be compressed in the ZLib format.
Note that setting PackLevel determines the level of compression for ZLib compression just as it does when compressing pkzip archives.
Set HttpCompression to True if you want to compress the data with no ZLib headers. This would mainly be used for http1.1 browser compliant compression. If you set this to True and then go to decompress the data with one of the ZLib decompress methods then you should set HttpCompression to True when uncompressing also.