zlib_decompress_from_base64_string()

Decodes the input string from base64 and performs zlib decompression.

Note

The only supported windows size is 15.

Syntax

zlib_decompress_from_base64_string(string)

Learn more about syntax conventions.

Parameters

Name Type Required Description
string string ✔️ The string to decode. The string should have been compressed with zlib and then base64-encoded.

Returns

  • Returns a string that represents the original string.
  • Returns an empty result if decompression or decoding failed.
    • For example, invalid zlib-compressed and base 64-encoded strings will return an empty output.

Examples

Valid input

print zcomp = zlib_decompress_from_base64_string("eJwLSS0uUSguKcrMS1cwNDIGACxqBQ4=")

Output

zcomp
Test string 123

Invalid input

print zcomp = zlib_decompress_from_base64_string("x0x0x0")

Output

zcomp