---
title: "ZLIB_DECOMPRESS"
description: "Die SQL-Funktion ZLIB_DECOMPRESS dekomprimiert einen BLOB mit dem Zlib-Algorithmus."
language: de
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/de/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:25Z
license: https://documentation.invantive.eu/de/
---

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

## Anwendung
Die SQL-Funktion `ZLIB_DECOMPRESS` dekomprimiert ein `blob` mithilfe des Zlib-Algorithmus.

Siehe auch [[ZLIB_COMPRESS]] und [[UNGZIP]].

Parameter:
- Eingabe (`blob`): Das `blob`, das entpackt werden soll.

Gibt das dekomprimierte `blob` zurück.

## Beispiele
Im folgenden Beispiel wird ein mit Zlib komprimiertes `blob` entpackt und der ursprüngliche Text abgerufen:
```sql
select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME'))))

-------------------
ACME
```
Im folgenden Beispiel wird ein mit Zlib komprimiertes `blob` entpackt und das Ergebnis in Text umgewandelt:
```sql
select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5'))

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

