title: Converting input stream into bitmap
body: <p>I have problems converting a input stream from web into bitmap. Problem occurs only when input image type is .BMP (bitmap). In that case: <strong>bitmapFactory.decodeStream returns null</strong>. </p>
  
  <p>Any hints how to fix this problem or where should I continue my debugging?</p>
  
  <p>Platform: Android (Honeycomb)</p>
  
  <pre><code>URLConnection conn = url.openConnection();
  conn.connect();
  
  inputStream = conn.getInputStream();
  
  bufferedInputStream = new BufferedInputStream(inputStream);
  
  bmp = BitmapFactory.decodeStream(bufferedInputStream);
  </code></pre>