Unicode_To_Base64
Converts Unicode nvarchar string to Base64 string
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.Unicode_To_Base64 ( @Unicode )
Name | Type | Description |
---|---|---|
@Unicode | nvarchar(MAX) | Unicode data string |
varchar(MAX)
1 2 3 4 5 6 |
DECLARE @Text nvarchar(MAX) SET @Text = 'The quick brown fox jumps over the lazy dog' SELECT SQLHTTP.net.Unicode_To_Base64(@Text) |
1 2 3 4 |
------------------------------------------------------ VABoAGUAIABxAHUAaQBjAGsAIABiAHIAbwB3AG4AIABmAG8AeAAgAGoAdQBtAHAAcwAgAG8AdgBlAHIAIAB0AGgAZQAgAGwAYQB6AHkAIABkAG8AZwA= |