title: C# can't convert string to byte array to desired result?
body: <p>I have string which is storing only 1's and 0's .. now i need to convert it to a byte array. I tried ..</p>
  
  <pre><code>System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
                          byte[] d = encoding.GetBytes(str5[1]);
  </code></pre>
  
  <p>but its giving me byte array of ASCIIs like 48's and 49's but i want 1's and 0's in my byte array.. can any one help </p>