Base64 Decode Base64 Encode CSS Beautifier Url Encoder Url Decoder Image to Base64 Base64 to Image

VB System.Convert.ToBase64String()

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits.

Function

Public Shared Function ToBase64String ( inArray As Byte() ) As String

Parameters

inArray - An array of 8-bit unsigned integers.

Return value

The string representation, in base 64, of the contents of inArray.

Example
Dim base64Decoded as String = "base64 encoded string"
Dim base64Encoded As String
Dim data As Byte()
data = System.Text.ASCIIEncoding.ASCII.GetBytes(base64Decoded)
base64Encoded = System.Convert.ToBase64String(data)
Github

https://github.com/base64encode/examples/blob/master/base64encode.vb

See also:
VB FromBase64String