BASE64_DECODE
Syntaxe
%%{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 :
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 :
select to_char(base64_decode('VGhpcyBpcyBhIGJhc2U2NCB0ZXN0'))
----------------------
This is a base64 test