coomar2841 / image-chooser-library

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

Uri.parse(filePath).getPath -> filePath #60

Closed helloyako closed 5 years ago

helloyako commented 9 years ago

I have problem filePath is "/storage/external_SD/#/#abc/zyx.jpg" Uri.parse("/storage/external_SD/#/#abc/zyx.jpg").getPath return only "/storage/external_SD". So FileNoeFoundException occured Your code is File file = new File(Uri.parse(filePath).getPath) I think variable filePath is already FILEPATH. I thnkis Uri.parse.. is unnecessary code please check this code thank you

coomar2841 commented 9 years ago

Will need to check this once. Will try to do this weekend. Thanks.

coomar2841 commented 8 years ago

It's probably due to '#' and parse is encoding it and omitting it. Will look at it.