title: Java Android: BufferedInputStream to byte Array
body: <p>Has anyone an idea how to get a BufferedInputStream to a byte[] so that I can make a Bitmap of it?</p>
  
  <p>That's my Stream:</p>
  
  <pre><code>BufferedInputStream stream = new BufferedInputStream(socket.getInputStream());
  </code></pre>
  
  <p>And that's my byte[]:</p>
  
  <pre><code>byte[] bytes;
  </code></pre>