title: Converting String into Bitmap
body: <p>I'm trying to convert <code>String</code> into <code>Bitmap</code> object to put it then on <code>ImageView</code>. <code>String</code> value is downloaded from web and is not null. Actually it is a jpeg file which I can download and open via browser.</p>
  
  <p>I tried to use <code>BitmapFactory.decodeByteArray</code> method  but got <code>--- SkImageDecoder::Factory returned null</code> message.</p>
  
  <pre><code>try{
        byte[] encodeByte = encodedString.getBytes();
        Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length);
        return bitmap;
      } catch(Exception e){
         e.printStackTrace();
         return null;
   }
  </code></pre>
  
  <p><code>encodedString</code> is actually a string I downloaded before:</p>
  
  <pre><code>...
  HttpEntity resEntity = response.getEntity();
  String encodedString = EntityUtils.toString(resEntity);
  ...
  </code></pre>