I am trying to research how to add attachments via Python.
I see something about Generating an Attachment Match Table and then Add Attachment.
I eventually want to run this python script via a service
Can I pass the service the local parameters to the image, identify the gdb etc from a mobile environment???
Where does this Match table come into play? Would it reside on the mobile device? PC? Server?
I am not sure how this all plays together?
I would like to take a pic on my phone and store that pic on the phone.
Then fire off a GPService that is running a python script that adds the image to a Geodatabase.
So I would have to upload the image and add it to a geodatabase.
I would have the Features Global ID and Object ID
I would have the image
I just need to pass the image somehow and Add the Attachment to the gdb
Oh cool. If your gdb is in your data store you should be able to write straight into it. The gp service you create should have 'allow uploads ticked' which should allow you to specify the path from your phone. This is from a portal perspective unfortunately tho.
Yea I think that's where I am having my problem...do I create a match table every instance of adding an attachment? Or one table that I reference each time I add an attachment?