
convert Byte array to string and vice veras
you could do (from string to byte array):
Dim b() As Byte
Dim utf As New System.Text.UTF7Encoding()
b = utf.GetBytes("hello world")
and (from byte array to string):
Dim s As String = utf.GetString(b)
Console.WriteLine("and string is {0}", s)
Quote:
> How do I convert a String to an array of Bytes and vice versa???
> Thanks.