Review the code snippet before inserting it on your project.
public static byte[] convertStringToBytes(string str) { System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); return encoding.GetBytes(str); }
With from Barcelona