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

Crop picture with com.github.yalantis:ucrop:2.2.8-native crop to prompt "/photo/Pictures/20240312_210716113.jpg: open failed: ENOENT (No such file or directory)" #904

Open
github2136 opened this issue Mar 12, 2024 · 0 comments

Comments

@github2136
Copy link

Using com. Making. Yalantis: ucrop: 2.2.8 - native cutting image when prompted

Copying failed
java.io.FileNotFoundException: /photo/Pictures/20240312_210716113.jpg: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileOutputStream.(FileOutputStream.java:235)
at java.io.FileOutputStream.(FileOutputStream.java:186)
at com.yalantis.ucrop.task.BitmapLoadTask.copyFile(BitmapLoadTask.java:181)
at com.yalantis.ucrop.task.BitmapLoadTask.processInputUri(BitmapLoadTask.java:159)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:88)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:37)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)

View from the source code of BitmapLoadTask is copyFile function
outputStream = new FileOutputStream(new File(outputUri.getPath())); , caused by the same action in com. Making. Yalantis: ucrop: 2.2.8 and there is no problem

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