Skia Decoder fails to decode remote Stream

Posted by Samuh on Stack Overflow See other posts from Stack Overflow or by Samuh
Published on 2010-05-07T07:51:05Z Indexed on 2010/05/07 7:58 UTC
Read the original article Hit count: 474

Filed under:
|
|

I am trying to open a remote Stream of a JPEG image and convert it into a Bitmap object:

    BitmapFactory.decodeStream(
new URL("http://some.url.to/source/image.jpg")
.openStream());

The decoder returns null and in the logs I get the following message:

DEBUG/skia(xxxx): --- decoder->decode returned false

Note:
1. the content length is non-zero and content type is image/jpeg
2. When I open the URL in browser I can see the image.

What is that I am missing here?

Please help. Thanks.

© Stack Overflow or respective owner

Related posts about android

Related posts about imageview