The FROM_BASE64()
function was introduced in MariaDB 10.0.5.
FROM_BASE64(str)
Decodes the given base-64 encode string, returning the result as a binary string. Returns NULL
if the given string is NULL
or if it's invalid.
It is the reverse of the TO_BASE64
function.
There are numerous methods to base-64 encode a string. MariaDB uses the following:
+
'. /
'. =
' character. SELECT TO_BASE64('Maria') AS 'Input'; +-----------+ | Input | +-----------+ | TWFyaWE= | +-----------+ SELECT FROM_BASE64('TWFyaWE=') AS 'Output'; +--------+ | Output | +--------+ | Maria | +--------+
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/from_base64/