title: Convert Binary String to Binary
body: <p>How do I convert a String written as Binary, to binary (in byte array)?</p>
  
  <p>If I have a String:</p>
  
  <p><code>String binary = "0000"</code></p>
  
  <p>I want the binary data to be <code>0000</code>. </p>
  
  <p>below is what happens when I set the binary to a byte array (which in turn returns 48, which is ASCII)</p>
  
  <p><code>
      Binary String: 0000
      Binary Byte array: 48
      Binary Byte array: 48
      Binary Byte array: 48
      Binary Byte array: 48
  </code></p>
  
  <p>I'm not good at explaining so hopefully the above example was enough to tell you what I want.</p>
  
  <p><em>EDIT:</em> This is to set the data into a binary file.</p>