How to Conversion of string to byte?
<p>How can I convert a String containing number like "00110011" to bytes using Java?
I have tried something mentioned following.</p>

<pre><code>System.Text.Encoding enc = System.Text.Encoding.ASCII; 
byte[] myByteArray = enc.GetBytes("a text string"); 
string myString = enc.GetString(myByteArray );
</code></pre>
