Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting java.io.FileNotFoundException #155

Open
vishrut2207 opened this issue Oct 1, 2018 · 0 comments
Open

Getting java.io.FileNotFoundException #155

vishrut2207 opened this issue Oct 1, 2018 · 0 comments

Comments

@vishrut2207
Copy link

vishrut2207 commented Oct 1, 2018

scenario:
When I download the image from Google SearchBar that is not working. Multipicker show Error like permission not granted & FileNotFoundException.
Path : /data/user/0/com.android.providers.downloads/cache/downloadfile.jpg

But I download the same image from chrome it works perfectly.
Path : /storage/emulated/0/Download/downloadfile.jpg

Fatal Exception: java.lang.IllegalArgumentException
Unknown URI: content://downloads/public_downloads/572

java.io.FileNotFoundException: Source '/data/user/0/com.android.providers.downloads/cache/downloadfile.jpg' does not exist
at com.kbeanie.multipicker.utils.FileUtils.copyFile(FileUtils.java:121)
at com.kbeanie.multipicker.utils.FileUtils.copyFile(FileUtils.java:109)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.copyFileToFolder(FileProcessorThread.java:169)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.postProcess(FileProcessorThread.java:135)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.processFiles(FileProcessorThread.java:109)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.run(FileProcessorThread.java:80)
at com.kbeanie.multipicker.core.threads.ImageProcessorThread.run(ImageProcessorThread.java:42)
java.io.FileNotFoundException: Source '/data/user/0/com.android.providers.downloads/cache/downloadfile.jpg' does not exist
at com.kbeanie.multipicker.core.threads.FileProcessorThread.copyFileToFolder(FileProcessorThread.java:174)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.postProcess(FileProcessorThread.java:135)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.processFiles(FileProcessorThread.java:109)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.run(FileProcessorThread.java:80)
at com.kbeanie.multipicker.core.threads.ImageProcessorThread.run(ImageProcessorThread.java:42)
Caused by: java.io.FileNotFoundException: Source '/data/user/0/com.android.providers.downloads/cache/downloadfile.jpg' does not exist
at com.kbeanie.multipicker.utils.FileUtils.copyFile(FileUtils.java:121)
at com.kbeanie.multipicker.utils.FileUtils.copyFile(FileUtils.java:109)
at com.kbeanie.multipicker.core.threads.FileProcessorThread.copyFileToFolder(FileProcessorThread.java:169)

@vishrut2207 vishrut2207 changed the title Fatal Exception: java.lang.IllegalArgumentException Getting java.io.FileNotFoundException Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant