Base64 Decode Base64 Encode Image to Base64 Base64 to Image

VB System.Convert.FromBase64String()

Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.


Public Shared Function FromBase64String ( s As String ) As Byte()


s - The string to convert

Return value

An array of 8-bit unsigned integers that is equivalent to s.

Dim base64Encoded As String = "YmFzZTY0IGVuY29kZWQgc3RyaW5n"
Dim base64Decoded as String
Dim data() As Byte
data = System.Convert.FromBase64String(base64Encoded)
base64Decoded = System.Text.ASCIIEncoding.ASCII.GetString(data)

See also:
VB ToBase64String