Skia的德codeR未能解除code远程流 [英] Skia Decoder fails to decode remote Stream
本文介绍了Skia的德codeR未能解除code远程流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图打开一个JPEG图像的远程流,并把它转换成位图对象:
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());
本德codeR返回null,我得到以下信息在日志中:
The decoder returns null and in the logs I get the following message:
DEBUG/skia(xxxx): --- decoder->decode returned false
注:
1.内容长度为非零和内容类型为为image / jpeg
2.当我在浏览器中打开URL我可以看到图像。
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?
请帮忙。谢谢你。
推荐答案
似乎有一些问题,同流和Android的方式处理它;该补丁在这个 bug报告解决的问题现在。
seems there was some problem with the stream and the way android handled it; the patch in this bug report solved the problem for now.
这篇关于Skia的德codeR未能解除code远程流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文