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
Expand|Select|Wrap|Line Numbers
- STRING byte array. i.e.
- Dim Array() As Char
- Dim strwork As String = "76A3kj9d6"
- Array = strwork.ToCharArray
Expand|Select|Wrap|Line Numbers
- 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>