java.io.FileNotFoundException: content:/com.android.externalstorage.documents/tree/primary%3AH-Viewer%2Fdownload/QrCodes/Pixiv.jpg: open failed: ENOENT (No such file or directory)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Before using FileOutputStream check that there's no directory or file with the same name you're trying to use. Trying to remove it works as well. Try using FileAsyncHttpResponseHandler(context) as well!

,

Check for the availability of the file in the file system manually before executing the file read code segment.

Solutions on the web

via GitHub by AI-Cloud
, 1 year ago
content:/com.android.externalstorage.documents/tree/primary%3AH-Viewer%2Fdownload/QrCodes/Pixiv.jpg: open failed: ENOENT (No such file or directory)
via Stack Overflow by Aviel Gross
, 1 year ago
/mnt/sdcard/myTomatoes/covers/378194.PNG: open failed: ENOENT (No such file or directory)
via Stack Overflow by Arefin
, 2 years ago
/data/data/[packagename ommitted]/databases/mydb.db: open failed: ENOENT (No such file or directory)
via Stack Overflow by Bhiefer
, 2 years ago
/storage/sdcard1/Android/data/<applicationpackage>/files/somefolder/somefile.xml: open failed: ENOENT (No such file or directory)
via google.com by Unknown author, 1 year ago
via GitHub by mrljdx
, 1 year ago
/data/data/ctrip.android.sample/files/storage/meta: open failed: ENOENT (No such file or directory)
java.io.FileNotFoundException: content:/com.android.externalstorage.documents/tree/primary%3AH-Viewer%2Fdownload/QrCodes/Pixiv.jpg: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:456)
at java.io.FileOutputStream.(FileOutputStream.java:87)
at java.io.FileOutputStream.(FileOutputStream.java:72)
at ml.puredark.hviewer.utils.ImageScaleUtil.saveToFile(ImageScaleUtil.java:102)
at ml.puredark.hviewer.ui.activities.ModifySiteActivity.saveQrCode(ModifySiteActivity.java:213)

Users with the same issue

Once, 1 month ago
5 times, 3 months ago
5 times, 4 months ago
2 times, 4 months ago
2 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.