Friday, May 1, 2015

asp.net convert string to byte

 public static byte[] StringToByte(string str)
        {
            System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
            return encoding.GetBytes(str);
        }

No comments:

Post a Comment