## Syntax ```mermaid %%{init: { 'theme': 'base', 'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' }, 'themeVariables': { 'fontSize': '11px', 'fontFamily': 'Arial' } }}%% flowchart LR Start((START)) --> ZLIB_DECOMPRESS[ZLIB_DECOMPRESS]:::quoted ZLIB_DECOMPRESS --> End((END)) ``` ## Purpose The `ZLIB_DECOMPRESS` SQL function decompresses a `blob` using the Zlib-algorithm. See also [[ZLIB_COMPRESS]] and [[UNGZIP]]. Parameters: - input (`blob`): the `blob` to decompress. Returns: the decompressed `blob`. ## Examples The following example decompresses a Zlib-compressed `blob` and retrieves the original text: ```sql select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME')))) ------------------- ACME ``` The following example decompresses a Zlib-compressed `blob` and converts the result to text: ```sql select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5')) ------------------- This is a very long text to test the ZLib compression method ```