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