Imports System.Text Public Shared Function ConvertStringToByteArray(ByVal stringToConvert As String) As Byte() Return System.Text.Encoding.ASCII.GetBytes(stringToConvert.ToCharArray()) End Function
Convert String to Byte Array
Welcome to my programming blog. This Blog contains my research and notes pertaining to programming. You are free to use any information on this site however you must make a comment on the blog, and put credit in your code that you obtained it from here. You can contact me directly at rob @at@ robsprogrammingjunk.com.
Imports System.Text Public Shared Function ConvertStringToByteArray(ByVal stringToConvert As String) As Byte() Return System.Text.Encoding.ASCII.GetBytes(stringToConvert.ToCharArray()) End Function
No comments:
Post a Comment