I want to convert string to binary and I tried this code
byte[] arr = System.Text.Encoding.ASCII.GetBytes(aa[i]); and this
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); byte[] arr= encoding.GetBytes(aa[i]); but it returned numbers not binary say If I write 'm' it convert it to "0109" and I want to convert to zeros & Ones only Thanks in advance
byte[]are binary, like everything in a computer.Abecomes 65 (it's 1 byte ASCII representation) which is equal to 01000001 in binary.