MakeZlibCompressedFile (open)
Compress a blob using zlib deflate
Syntax
LOADLIB "wh::internal/libz.whlib";
BLOB FUNCTION MakeZlibCompressedFile(BLOB infile, STRING format, INTEGER compressionlevel)
Parameters
BLOB infile
Data to compress
STRING format
Compression format
- GZIP: Add gzip heaaders to compressed file
- ZLIBRAW, ZIP: compress the file, do not add headers
INTEGER compressionlevel
Return value
BLOB
Compressed data