Hi experts,
I need to convert a string or a Byte array to a string byte array.
Its relatively easy to convert a string to an char array or a byte array but not a
OR
Please help..
thanks
<edit by mod: use [CODE] tags, not [I] tags>
I need to convert a string or a Byte array to a string byte array.
Its relatively easy to convert a string to an char array or a byte array but not a
Code:
STRING byte array. i.e.
Dim Array() As Char
Dim strwork As String = "76A3kj9d6"
Array = strwork.ToCharArray
Code:
Dim s As String = "76A3kj9d6"
MessageBox.Show("Base String: " & s)
Dim b() As Byte = System.Text.UTF8Encoding.UTF8.GetBytes(s)
MessageBox.Show("Converted from byte array to string: " & System.Text.UTF8Encoding.UTF8.GetString(b))
thanks
<edit by mod: use [CODE] tags, not [I] tags>
Comment