Did you try insert picture?
I think this should work if the image is saved as a file to the device and not in Photos.
The only idea that that comes to mind is using a web viewer with image data or passing the image off to Dropbox or iCloud Drive. Copy/paste?
As you have the file path,, would 'Insert from URL...' work I wonder..? Sounds interesting that you have the full file path to an image stored in Photos...
If you already have created a custom app, I suspect, that you could use FileMaker iOS SDK app instead of FileMaker Go.
Then you'll be able to save your photo to shared folder. Two apps from one developer can share Group container and have direct access to files.
FileMaker Go can only insert files via a script from the document folder and temp folder. If you can copy the photo you could use the paste command to place the photo into the container field.
Thanks for the help and ideas. As a point of reference, here is the returned path.
I did try file:/// and file:// but I did not change anything else about the path, so maybe if someone sees something in the structure of the path that is preventing the insert... I'm a PC guy, so Mac paths a foregin to me.
Skywillmot, I did try Insert from URL after posting here. It gave me an error about the connection.
bigtom, yes I tried Insert Picture, though it was saved in Photos and not as a file somewhere else. I setup a web server and had the camera app upload the image to the web, then had Filemaker Insert from URL the image, but the wait time to do all that was unacceptable. As I need to take 20 photos at a time, I can't afford the time routing the photos through the internet adds. Not to mention tripling data usage.
odubov, thanks for the SDK recommendation. I had never heard of it. I will look into this for a lot of things our company has going on.
rgordond, I did not know I could paste into a container field. Copy paste would likely work. I wonder if it maintains the EXIF info? Good to know about inserting from the temp folder. Perhaps I will look into saving to the temp folder as well and passing that path to see if I can successfully insert the file that way. I like that way better than copy/paste.
As an update, copy/paste looses the EXIF data, which is required. So that method is out.
I accept and respect that you do not want to use the build in photo function with the "insert from device" script step. But just to get a clearer understanding, why is it that you do not use this?
Is it the ability to adjust/manipulate the photo in "photo"?
I would love to use the built in camera with Insert from device,but yes, the photo requires gps, date and label stamped on it.
Does it need to be stamped on from the external source ... we are doing watermarking, timestamping etc. via robot functions on the server ... thereby simplifying the process the fieldworker with the iPad.
It could be performed server side. So long as the EXIF data remained intact. I tried GoDraw 2 to accomplish the stamping after the photo was taken but the saved file did not have the EXIF data.
I hadn't thought about the phrase "watermarking" when looking for a solution. Using that in my Google search returned Watermark by Todd Geist and ScriptMaster by 360Works for watermarking. I will have a look at those to see what I can accomplish with them.
You said " ... we are doing watermarking, timestamping etc. via robot functions on the server ..."
What is your technique for accomplishing this?
You do know that getContainerAttribute can be used to access a photo's meta data? Shouldn't that be possible via Insert From Device?
Yes, I know I can get the attributes. But how do I go about actually
watermarking the image with it?
Not sure if this is still relevant. One of our clients required GPS coords with their photos taken on iPad's as well. After some testing we found that photo's taken with the "insert from device" would not have GPS coords. If the same photo was taken with the camera app (outside of FM), coords would be inserted fine.
Some testing revealed that the camera app itself doesn't insert the GPS coords, rather iOS does when the camera app tells it to. This works fine for photo's stored in the iOS photo app, as the OS continues having access to them. The way we tested this is by taking photo's inside, check GPS coords in those photo's and then walk outside. Camera app was closed by then but the GPS coords still magically appeared in the photos that previously had none.
However, when a photo is taken with "Insert from device", the photo goes straight into a container and is no longer accessible to the OS to add GPS coords. Unless coords are present at the time of taking the photo, they won't be inserted.
The way we get around it is by waiting 30secs or so in the script to grab GPS coords with FM, and then add those in separate fields. If the photo needs to be exported, the GPS coordinates are added to the JPG using ExifTool (www.sno.phy.queensu.ca/~phil/exiftool/).
We store the exiftool binary in a container field and drop it in a folder of the user when needed. Works quite well and is free.
This can only be done on a desktop of course (Mac or Win).
If you want to watermark images, you could use something like ImageMagick (learning curve though!). Very powerful and also open source. Commandline driven so completely scriptable.