coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 192 forks source link

Image file name containing encoded url can cause an issue #25

Open DavidBoyes opened 10 years ago

DavidBoyes commented 10 years ago

If you have an image which contains an encoded URL as the file name then the image-chooser-library will return "File not found". It appears that Uri.parse decodes the file name which causes an issue when trying to copy the file in the MediaProcessThread copyFileToDir() method.

What would the downside be to changing file = new File(Uri.parse(filePath).getPath()); to file = new File(filePath);

coomar2841 commented 10 years ago

Thanks @DavidBoyes . Will have a look at this soon.

coomar2841 commented 9 years ago

I haven't experience any problems with this yet. Do you have an example filename that causes this issue? I can check that quickly. Sorry for replying so late to this.