---
title: "BASE64_DECODE"
description: "La fonction SQL BASE64_DECODE convertit une valeur encod\u00E9e en base64 en son objet binaire, tel que d\u00E9fini dans la RFC 4648."
language: fr
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fr/docs/invantive-universalsql/grammar/sql-functions/base64-decode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/base64-decode
updated: 2026-12-04T13:21:10Z
license: https://documentation.invantive.eu/fr/
---

## Syntaxe
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> BASE64_DECODE[BASE64_DECODE]:::quoted
    BASE64_DECODE --> End((END))
```

## Objet
La fonction SQL `BASE64_DECODE` convertit une valeur encodée en Base64 en objet binaire, conformément à la définition donnée dans la RFC 4648](https://www.rfc-editor.org/rfc/rfc4648).

Voir également [[BASE64_ENCODE]].

Paramètres :
- Entrée (`varchar2`) : valeur à reconvertir dans son format d'origine.

Résultats : la valeur d'entrée est décodée pour redevenir la valeur binaire sous la forme `blob`.

## Exemples
`BASE64_DECODE` convertit le texte `aGk=` en un objet binaire, puis en un texte utilisant le jeu de caractères ASCII de 7-bit :
```sql
select blob_to_text(base64_decode('aGk='), 'ASCII')

--------
hi
```
`BASE64_DECODE` convertit un texte encodé en Base64 en un objet binaire, puis en texte à l'aide de `TO_CHAR` :
```sql
select to_char(base64_decode('VGhpcyBpcyBhIGJhc2U2NCB0ZXN0'))

----------------------
This is a base64 test
```

