JeffYi2017
Results
2
comments of
JeffYi2017
> 手机安卓系统版本是多少?什么型号手机? 我试了两个手机android6.0,7.0的都报错,vivo,还有杂牌机,我调试Uint8List是有值的
搜索了下会不会是这个原因 BitmapFactory.decodeByteArray函数获取的bitmap为null BitmapFactory .Options opts = new BitmapFactory.Options(); opts. inJustDecodeBounds = false ;//inJustDecodeBounds 需要设置为false,如果设置为true,那么将返回null opts. inSampleSize = size ; bitmap = BitmapFactory. decodeByteArray(byteArray, 0, byteArray.length , opts);