base64
function
Applies to: Databricks SQL Databricks Runtime
Converts expr
to a base 64 string using RFC2045 Base64 transfer encoding for MIME.
Syntax
base64(expr)
Arguments
expr
: A BINARY expression or a STRING which the function will interpret as BINARY.
Returns
A STRING.
Examples
> SELECT base64('Spark SQL');
U3BhcmsgU1FM
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for