I have a Phonegap app that saves images the user takes from the camera to the device file system. I want to be able to access this image object in iOS/Objective C but can't seem to figure out how and don't see any explanations that solve the issue.
I'm able to see the path to the file (something like "file:///var/mobile/Containers/Data/Application/XXXX-XX-XXXXX/Documents/tempImg.jpg"), and can display this image properly setting HTML img src to this location, but when I try to access the image object in native code something is not working. I've tried using the code below
[UIImage imageWithContentsOfFile:imgName]
where imgName is the path in quotes above, but it does not work. Should I be doing something else?
I've checked all the Stack Overflow answers I could find like the link below, but nothing's working
Appreciate any help!