Here is a sample app that uses the web viewer to show images. The first record uses a image located on the internet. The second record uses a local path on my computer. You can test with a local path on your computer.
If the web viewer works for you then you will only have to store the path to the image and you can create a timestamp when you create the record. I have read all your post. Is your camara software created the date with the forward slashes? If you are trying to append the datestamp to the filename from within filemaker you can use substitute command to change the slashes to underscores in the date.
Example : Set Variable[$filename;value:"file:"& filename & substitute(theDate;"/";"_")&".jpg"]
Export field contents can also be used in a script attached to a button so that your users only click the button and the image opens for them. The main limitation to look out for is that if they need to edit the open image and save the changes back to your external storage location, you'll need to add yet another button that "saves" the changes by re-inserting the file from the exported location back ito the container field.
Phil, I tried what you gave me earlier to export field contents:
Set Variable [$Path ; Get ( TemporaryPath ) & "fileName.jpg" //specify the extension that's right for your file] it is a .jpg
Export Field Contents [ Container Field ; $Path]
and my code looked like this:
Set Variable [$OpenImage ; Get ( TemporaryPath ) & "fileName.jpg"]
Export Field Contents [ Invoices::Photo; $OpenImage]
Am I missing something?
Be sure to click the check box option for automatically opening the file when it is exported. This is found in the Specify Output File dialog box.
You may not want to always name your file "filename.jpg"--particularly if users might need to edit the open file and save it back to the external location as the opened file will have "filename.jpg" as its filename and you can't have two files with the same name in the same directory specified for your external storage. If that's a possible issue, you may want to refer to text in a field that contains the flie name instead of using "filename.jpg".