---
title: "ZLIB_DECOMPRESS"
description: "La funzione SQL ZLIB_DECOMPRESS decomprime un BLOB utilizzando l\u0027algoritmo Zlib."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/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:28Z
license: https://documentation.invantive.eu/it/
---

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

## Scopo
La funzione SQL `ZLIB_DECOMPRESS` decomprime un'immagine `blob` utilizzando l'algoritmo Zlib.

Vedi anche [[ZLIB_COMPRESS]] e [[UNGZIP]].

Parametri:
- input (`blob`): l'immagine `blob` da decomprimere.

Restituisce: l'`blob` decompresso.

## Esempi
L'esempio seguente decomprime un'immagine `blob` compressa con Zlib e recupera il testo originale:
```sql
select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME'))))

-------------------
ACME
```
L'esempio seguente decomprime un'immagine `blob` compressa con Zlib e converte il risultato in testo:
```sql
select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5'))

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

