Skip to main content
Solved

Can we insert image attachments to an AGOL feature layer?


benvk
Contributor
Forum|alt.badge.img+7
  • Contributor

Hey,

I am currently reading a feature layer from AGOL, processing the data and writing the edited data to a new feature layer.

I have been able to extract the associated image attachments from my original table, but I am wondering if there is a way for me to insert these images to my output table?

Can we write these images, i have a GUID of the feature i need it to be attached to, I just don't know if it is possible through FME.

Any ideas?

Best answer by rahulsharma

Hi @benvk, as Mark suggested you will have to do this using Python and Rest API. Here is a template that would be a good starting point. https://hub.safe.com/publishers/safe-lab/templates/attachmentwriter

View original
Did this help you find an answer to your question?

2 replies

Forum|alt.badge.img+2

@benvk At the moment, FME does not support writing attachments to AGOL or Portal feature services. However, it should be possible to use either the PythonCaller and the Esri Python API or the HTTPCaller and use the REST API Add Attachment


rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • April 13, 2020

Hi @benvk, as Mark suggested you will have to do this using Python and Rest API. Here is a template that would be a good starting point. https://hub.safe.com/publishers/safe-lab/templates/attachmentwriter


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings