Invantive 문서Invantive Cloud의 일부
Invantive 지원 포럼로그인 / 회원가입

BASE64_ENCODE

구문

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> BASE64_ENCODE[BASE64_ENCODE]:::quoted
    BASE64_ENCODE --> FUNCPARS1["("]:::quoted
    FUNCPARS1 --> FUNCPARS2[parameters]
    FUNCPARS2 --> FUNCPARS3[")"]:::quoted
    FUNCPARS3 --> End((END))

목적

BASE64_ENCODE SQL 함수는 RFC 4648](https://www.rfc-editor.org/rfc/rfc4648)에 정의된 대로 이진 객체를 base64 인코딩 문자로 변환합니다.

BASE64_DECODE도 참조하십시오.

매개변수:

  • 입력(blob): base64 문자로 변환할 값입니다.

반환: varchar2로 base64 문자로 인코딩된 이진 입력값입니다.

예시

BASE64_ENCODE는 먼저 텍스트 hi를 ASCII 7비트 이진 객체로 변환한 다음 base64 표현으로 변환합니다:

select base64_encode(ascii_to_blob('hi'))

--------
aGk=

BASE64_ENCODE는 더 긴 ASCII 7비트 텍스트를 base64 표현으로 변환합니다:

select base64_encode(ascii_to_blob('This is a base64 test'))

----------------------------------------------------
VGhpcyBpcyBhIGJhc2U2NCB0ZXN0