java.io.FileNotFoundException

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

Samebug tips1

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!


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Stack trace

  • 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.<init>(FileOutputStream.java:87) at java.io.FileOutputStream.<init>(FileOutputStream.java:72) at ml.puredark.hviewer.utils.ImageScaleUtil.saveToFile(ImageScaleUtil.java:102) at ml.puredark.hviewer.ui.activities.ModifySiteActivity.saveQrCode(ModifySiteActivity.java:213)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

PierrePierre
Once,
Hiren AmaliyarHiren Amaliyar
12 times, last one
AravindAravind
2 times, last one
Unknown UserUnknown User
2 times, last one
rafaelrafael
2 times, last one
97 more bugmates