public static byte[] StringToByteArray(string inputString)
{
System.Text.ASCIIEncoding encoding=new System.Text.ASCIIEncoding();
return encoding.GetBytes(inputString);
}
Showing posts with label covert. Show all posts
Showing posts with label covert. Show all posts
Tuesday, March 18, 2008
How to convert string to byte[]
Here is a litle function to convert string to byte array.
Subscribe to:
Posts (Atom)