FROM_BASE64()

Overview

Returns the decoded value as binary string of a base-64 encoded string.

USAGE

FROM_BASE64(string)

Argument Name

Description

string

The base-64 value that is to be decoded

DETAILS

FROM_BASE64() is a string function that returns the decoded value of a base64-encoded string.

A NULL is returned if the argument is NULL or is otherwise not a valid base-64 string.

For the opposite conversion, see TO_BASE64().

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT FROM_BASE64('abc');
+--------------------+
| FROM_BASE64('abc') |
+--------------------+
| NULL               |
+--------------------+
SELECT FROM_BASE64(TO_BASE64('MariaDB'));
+-----------------------------------+
| FROM_BASE64(TO_BASE64('MariaDB')) |
+-----------------------------------+
| MariaDB                           |
+-----------------------------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES