Decoder :: Factory返回null

时间:2017-12-24 01:02:38

标签: java android

您好我在android编程中遇到问题,我尝试将图像文件从Uri转换为位图,所以,

这是我的imageUri:

"/storage/emulated/0/Pictures/JPEG_20171224_004343_960797038.jpg" 

我的程序中有这个:

 File image = new File(imageUri); 
 BitmapFactory.Options bmOptions = new BitmapFactory.Options();
 Bitmap bitmap = BitmapFactory.decodeFile(image.getAbsolutePath(), bmOptions);

但我有这个结果:

D/skia: --- SkImageDecoder::Factory returned null

请任何帮助:)

0 个答案:

没有答案