public static byte[] GetBytes(string content) { byte[] b = new byte[content.Length]; for (int counter = 0; counter < content.Length; counter++) b[counter] = Convert.ToByte(content[counter]); return b; }