Answers for "make base64 encode and decode function in sql server"

SQL
1

base64 encode sql server

--String to Base64
SELECT CAST('string' as varbinary(max)) FOR XML PATH(''), BINARY BASE64

--Base64 to String
SELECT CAST( CAST( 'c3RyaW5n' as XML ).value('.','varbinary(max)') AS varchar(max) )
Posted by: Guest on November-16-2020

Code answers related to "make base64 encode and decode function in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language