Skia Decoder fails to decode remote Stream(Skia 解码器无法解码远程流)
本文介绍了Skia 解码器无法解码远程流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试打开 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());
解码器返回 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. 当我在浏览器中打开网址时,我可以看到图片.
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.
我在这里缺少什么?
请帮忙.谢谢.
推荐答案
似乎流和android处理它的方式有问题;错误报告中的补丁现在解决了这个问题.
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 解码器无法解码远程流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
织梦狗教程
本文标题为:Skia 解码器无法解码远程流
基础教程推荐
猜你喜欢
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
