I'm looking to batch download and name photos attached to different features in my data sets.
I've found the Esri documentation for batch downloading, but that doesn't provide an easy way of telling what photos came from which features.
I searched around and found this post on stackexchange, tweaked it to match my data (changing which column to look for names in), and ran it, but it only produces files without a named file extension.
I did find that I can open them with MS Paint, but how do I get them to be produced as JPGs?
Thanks!
Edit: So, I found a work around using the command prompter to just rename the extensions to jpgs, but I'd still like to have them be produced correctly to avoid that extra step.
Solved! Go to Solution.
If you use the Esri script that you reference, and if the last part of your output name is "ATT_NAME" it should get a .jpg extension.
Check the attachment attribute table for the attachment and see if you see file extensions. If not, edit the script to append ".jpg" to the filename variable, but only IF you know the attachments are only photos. This can be tested if you think there may be other document types attached.
If you use the Esri script that you reference, and if the last part of your output name is "ATT_NAME" it should get a .jpg extension.
Check the attachment attribute table for the attachment and see if you see file extensions. If not, edit the script to append ".jpg" to the filename variable, but only IF you know the attachments are only photos. This can be tested if you think there may be other document types attached.
I ended up adding ".jpg" to the file name in the modified user-made script.
Thanks!