Skia Decoder fails to decode remote Stream
- by Samuh
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.