Blob Functions
base64Encode(blob|string)
base64 encode the input string or blob
base64Decode(string)
base64 decode the input string and return the decoded string as a blob
let s = "Hello World"
let enc = base64Encode(s)
printf("enc=%s", enc)
let dec = base64Decode(enc)
printf("dec=%s", toString(dec))
gzipCompress(blob|string)
gzip compress the input string or blob
gzipDecompress(blob)
gzip decompress the input blob and return the decompressed as a blob
let s = "Hello World"
let gzBlob = gzipCompress(s)
let b = gzipDecompress(gzBlob)
printf("%s", toString(b))
Updated 6 months ago