public static byte[] StringToByteArray(string inputString)
{
System.Text.ASCIIEncoding encoding=new System.Text.ASCIIEncoding();
return encoding.GetBytes(inputString);
}
Tuesday, March 18, 2008
How to convert string to byte[]
Here is a litle function to convert string to byte array.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment