ibec_CompressVar compresses Value using the LZ77 algorithm.
function ibec_CompressVar(Value : variant; Options : string) : string;
ibec_CompressVar compresses Value using the LZ77 algorithm and returns the string that represents a compressed content of Value.
The Options parameter is reserved for future use.
execute ibeblock
as
begin
-- Compressing
MyVar = ibec_LoadFromFile('D:\Script.sql');
MyVar = ibec_CompressVar(MyVar, '');
-- Decompressing
MyVar = ibec_DeCompressVar(MyVar, '');
ibec_SaveToFile('D:\Script.copy.sql', MyVar, __stfOverwrite);
end