devxlogo

EncodeBase64 – Encoding a string to base64

EncodeBase64 – Encoding a string to base64

' Returns the input string encoded to base64Private Function EncodeBase64(ByVal input As String) As String    Dim strBytes() As Byte = System.Text.Encoding.UTF8.GetBytes(input)    Return System.Convert.ToBase64String(strBytes)End Function

devx-admin

Share the Post: