将 varbinary 格式的数据编码成 base64 字符集格式,再以 varbinary 类型返回。
FUNCTION base64_encode(r IN varbinary) RETURN varbinary;
编码后的 varbinary 类型