Product Solutions Support
Try MemSQL

FROM_BASE64

Takes a base-64 encoded string and returns the decoded result as a binary string. The result is NULL if the argument is NULL or an invalid base-64 string.

FROM_BASE64 (str)

Arguments

Return Type

Binary string (blob)

Examples

memsql> select to_base64('abracadabra'), from_base64(to_base64('abracadabra'));
+--------------------------+---------------------------------------+
| to_base64('abracadabra') | from_base64(to_base64('abracadabra')) |
+--------------------------+---------------------------------------+
| YWJyYWNhZGFicmE=         | abracadabra                           |
+--------------------------+---------------------------------------+
Was this article useful?