MySQL from_base64()

Decode an input String using Base64.

Function

FROM_BASE64(str)

Parameters

str - The String to be decoded

Return value

Returns the Base64-decoded version of str.

Example

#note: This function was added in MySQL 5.6.1.
mysql> SELECT FROM_BASE64('YmFzZTY0IGVuY29kZWQgc3RyaW5n');
-> base64 encoded string

Github

See also: