Convert a string into byte array
Visual Basic
5
Posts
3
Posters
1
Views
1
Watching
-
Could somebody tell me how to convert a string (0 to 255 range) to a byte array?
William
-
Could somebody tell me how to convert a string (0 to 255 range) to a byte array?
William
-
Use the encoding of your choise and the GetBytes method: messageArray = Encoding.ASCII.GetBytes("Hello world")
--- b { font-weight: normal; }
Hi, Thank you very much for help. Your code just works for ASCII characters. What about the characters in the range from 0 to 255?? Thank you again, William
William
-
Hi, Thank you very much for help. Your code just works for ASCII characters. What about the characters in the range from 0 to 255?? Thank you again, William
William
-
Could somebody tell me how to convert a string (0 to 255 range) to a byte array?
William