MakeZlibDecompressedFile (open)
Decompress a blob that was compressed with zlib deflate
Syntax
LOADLIB "wh::internal/libz.whlib";
BLOB FUNCTION MakeZlibDecompressedFile(BLOB infile, STRING format)
Parameters
BLOB infile
Data to decompress
STRING format
Compression format
- ZLIB: With zlib header
- GZIP: With gzip headers
- ZLIBRAW Zlib raw data, decode whole blob
- ZLIBRAW:: Zlib raw data, decode max length bytes
Return value
BLOB
Decompressed data