469,906 Members | 2,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,906 developers. It's quick & easy.

How do I convert string to array of byte?


I something like this:

dim mybytes() as byte = "hello world"

The string is ascii.
Nov 21 '05 #1
1 1316
Dim bytes As Byte()
Dim text As String = "hello world"
Dim b As Byte
bytes = System.Text.ASCIIEncoding.ASCII.GetBytes(text)

Hope it helps :)

Mythran

"aurora" <spam> wrote in message news:ey****************@TK2MSFTNGP11.phx.gbl...

I something like this:

dim mybytes() as byte = "hello world"

The string is ascii.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Swarup | last post: by
6 posts views Thread by Ricardo Quintanilla | last post: by
15 posts views Thread by Kueishiong Tu | last post: by
6 posts views Thread by Allan Ebdrup | last post: by
6 posts views Thread by Bob Altman | last post: by
12 posts views Thread by Peter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.