title: how to convert binary data to image?
body: <p>In my android application. I got binary code from a jpeg image from the code as follows.</p>
  
  <pre><code>byte[] val = stream.toByteArray();
            BigInteger bi = new BigInteger(val);
      String s =  bi.toString(2);
  </code></pre>
  
  <p>This string s prints the binary value of the image.
  My question is how to convert this binary format into a jpeg image??</p>