If you want ASCII encoding, you can do this: Dim test As String = "Hello" Dim bytes As Byte() = Encoding. ...
stackoverflow.com