Replies: 1 comment 2 replies
-
It's likely unrelated but The equivalent would be
I don't think your code will cause problems on the first time run, but it will likely cause problems on the second image capture, or any file "get" operation thereafter.
Can you include more details about your environment including camera and file plugin versions, and your cordova-android version? |
Beta Was this translation helpful? Give feedback.
-
I have an existing routine that worked fine in earlier versions that takes a picture, renames it and moves it to a sub-directory("Photos") that I successfully created in the sandboxed dataDirectory ("files") folder of my Application. It's no longer functioning. I cannot get the returned fileURI from the camera plugin to format correctly for the subsequent file operations.
The photo plugin returns "fileURI " = file:///data/user/0/com.nsbasic.Vantastic/cache/1697768037972.jpg
(inside the cache folder of the apps sandbox). Simply passing the above file URI to the getfile() method returns a not found error. How can i convert the above "fileURI" to something that the getfile() can find? I have tried:
Any ideas?? Here is my latest attempt that fails to find the photo:
CHEERS!
jimmy
Beta Was this translation helpful? Give feedback.
All reactions