Problem creating a Drawable from a SQLite Blob
<p>I'm caching image files as a blob in a SQLite database.  I have a similar application on another platform that does the same thing with the same image files.  The databases on both platforms report the exact same size for the same images.  So I think, but can't guarantee, that the image data is getting into the database intact.</p>

<p>But when I try to create a Drawable, the console prints out "DEBUG/skia(267): --- decoder->decode returned false".</p>

<p>The steps are:</p>

<ol>
<li><p>Read the blob into a byte array.</p>

<p>byte[] b = new byte[imageDataCursor.getInt(0)];</p>

<p>b = imageDataCursor.getBlob(1);</p></li>
<li><p>Create an InputStream from the byte array.</p>

<p>ByteArrayInputStream is = new ByteArrayInputStream(b);</p></li>
<li><p>Create a Drawable from the InputStream. (this is what creates the 'decoder' message above)</p>

<p>Drawable drw = Drawable.createFromStream(is, "articleImage");</p></li>
<li><p>Set the ImageView.image to the Drawable.</p>

<p>imgView.setImageDrawable(drw);</p></li>
</ol>

<p>So far, no joy.  Any suggestions?</p>
