Solved Encode to base64

andrea93

Member
I have a string or a collection in text input to convert to base64. I saw that there is no default object. Any idea about the code?
 

Sachin_Kharmale

Active Member
Hi use the bellow code to convert String into Base 64 String

Dim Base64String As String
Dim byt As Byte() = System.Text.Encoding.UTF8.GetBytes("Sachin")
Base64String = convert.ToBase64String(byt)


I hope it will help you.
 
Top