Hello, I use Universal Image Loader to download images from the device, now it works, but if the path to the file contains a space character, the image does not appear, and the log entries show that there is a FileNotFoundException .
I tried to open the file in a stream using java io and it opens and I can read it.
file name:
/mnt/sdcard/WhatsApp/Media/WhatsApp Images/IMG-20121014-WA0001.jp
when an exception is thrown
it replaces the space with %20 , and this makes an exception.
My code is:
ImageLoader.getInstance().displayImage( Uri.fromFile( new File(cursor.getString(cursor.getColumnIndex( MediaStore.Images.Media.DATA)))).toString(), holder.mImage);
only works if there are no spaces in the path,
Any help
source share