---
title: "ZLIB_DECOMPRESS"
description: "La funci\u00F3n SQL ZLIB_DECOMPRESS descomprime un BLOB utilizando el algoritmo Zlib."
language: es
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/es/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/es/
---

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

## Propósito
La función SQL `ZLIB_DECOMPRESS` descomprime una imagen `blob` utilizando el algoritmo Zlib.

Véanse también [[ZLIB_COMPRESS]] y [[UNGZIP]].

Parámetros:
- Entrada (`blob`): la imagen `blob` que se va a descomprimir.

Devuelve: la imagen `blob` descomprimida.

## Ejemplos
En el siguiente ejemplo se descomprime una imagen `blob` comprimida con Zlib y se recupera el texto original:
```sql
select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME'))))

-------------------
ACME
```
En el siguiente ejemplo se descomprime una imagen `blob` comprimida con Zlib y se convierte el resultado a texto:
```sql
select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5'))

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

