Documentation Invantiveune partie de Invantive cloud
Forums d'Invantive SupportConnectez-vous/inscrivez-vous

ZLIB_DECOMPRESS

Syntaxe

%%{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))

Objet

La fonction SQL ZLIB_DECOMPRESS décompresse une image blob à l'aide de l'algorithme Zlib.

Voir également ZLIB_COMPRESS et UNGZIP.

Paramètres :

  • Entrée (blob : l'image blob à décompresser.

Renvoie : l'blob décompressé.

Exemples

L'exemple suivant décompresse une image blob compressée au format Zlib et récupère le texte d'origine :

select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME'))))

-------------------
ACME

L'exemple suivant décompresse une image blob compressée au format Zlib et convertit le résultat en texte :

select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5'))

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