---
title: "ZLIB_DECOMPRESS"
description: "Funkce SQL ZLIB_DECOMPRESS dekomprimuje BLOB pomoc\u00ED algoritmu Zlib."
language: cs
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/cs/docs/invantive-universalsql/grammar/sql-functions/zlib-decompress
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/zlib-decompress
updated: 2026-12-04T14:58:20Z
license: https://documentation.invantive.eu/cs/
---

## Syntaxe
```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))
```

## Účel
Funkce SQL `ZLIB_DECOMPRESS` dekomprimuje `blob` pomocí algoritmu Zlib.

Viz také [[ZLIB_COMPRESS]] a [[UNGZIP]].

Parametry:
- input (`blob`): `blob`, která se má dekomprimovat.

Vrací: dekomprimovaný `blob`.

## Příklady
Následující příklad dekomprimuje data komprimovaná pomocí Zlib `blob` a načte původní text:
```sql
select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME'))))

-------------------
ACME
```
Následující příklad dekomprimuje data komprimovaná pomocí Zlib `blob` a převede výsledek na text:
```sql
select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5'))

-------------------
This is a very long text to test the ZLib compression method
```

