Drawable.createFromStream()
is not really meant to construct images over a remote HTTP connection. In fact, if you look at the source of this method it ends up calling BitmapFactory.decodeResourceStream()
, which is used to create images from the application's internal resources.
I would recommend you try using methods on BitmapFactory
directly to decode images coming from the network. Some options would be decodeStream()
but sometimes the network can have an issue keeping the buffer full enough for this method. You can also read the bytes from the stream yourself into a byte[]
and use decodeByteArray()
. You may have better luck with this approach.