SkImageDecoder::Factory returned null

Fernando picture Fernando · Jun 2, 2012 · Viewed 9.3k times · Source

I'm programming on Android and read images from a remote URL with this call

BitmapFactory.decodeStream( ....

Random, I get the error:

SkImageDecoder::Factory returned null

I read some thread here but not solve my problem (Use a wrapper to InputStream class, use drawable, etc)

Any Idea?

Answer

ben picture ben · May 6, 2016

I also had this problem... eventually i found out that the image was too big and that caused the error. I suggest you try an image that you know will fit more or less. also you can use the lib picasso:

Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);

But for me even with picasso ive got the error... again because the image was too big.

hope it helps (: