Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
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
stringthat 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 |
|---|
Related content
- Create a compressed input string with zlib_compress_to_base64_string().