GZipCompressString

Compresses a string using the GZip protocol.

Note: This is a static function not a method of wwAPI

GZipCompressString(lcString,lnCompressionLevel)

Return Value

Data as a binary string. Empty string on failure.

Parameters

lcString
The string to compress

lnCompressionLevel
1-9 where 1 is least compression and 9 is most. 9 is slower. Recommend not setting setting - -1 = default and lets library decide which is usually compression level of 6

Remarks

Requires that ZLib1.dll is available in the FoxPro path.Based on the open source ZLib library (www.zlib.net)

This function uses temporary files in the Temp folder to unzip the Zip data.


See also:

Class wwAPI | GZipUncompressString

© West Wind Technologies, 2023 • Updated: 02/11/07
Comment or report problem with topic