草庐IT

BitmapUtils

全部标签

android - BitmapUtils 在从 uri 获取位图时在有空间的文件夹名称上抛出 FileNotFoundException

在Android5.1上有空间的文件夹上获取FileNotFoundException。否则它工作正常。我尝试用%20替换空格,但没有用。还尝试了URLEncoder,但失败了。我正在使用contentresolver获取图像路径:absolutePathOfImage=cursor.getString(column_index_data);这是(/storage/emulated/0/WhatsApp/Media/WhatsAppImages/IMG-20181025-WA0001.jpg)网址:file:///storage/emulated/0/WhatsApp/Media/Wh