<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Send picture through REST in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622804#M3035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to send a picture through the REST API? Want to move a picture from one feature service to another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2019 19:23:46 GMT</pubDate>
    <dc:creator>joerodmey</dc:creator>
    <dc:date>2019-03-19T19:23:46Z</dc:date>
    <item>
      <title>Send picture through REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622804#M3035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to send a picture through the REST API? Want to move a picture from one feature service to another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622804#M3035</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2019-03-19T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Send picture through REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622805#M3036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've updated some attachments, so you should be able to move them.&amp;nbsp; Start by checking: &lt;A href="https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm"&gt;Query Attachments&lt;/A&gt;.&amp;nbsp; There are links on the side of the page for Add Attachments and Delete Attachments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2019 01:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622805#M3036</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2019-03-24T01:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Send picture through REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622806#M3037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haven't had too much luck with it. Have any examples?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 15:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622806#M3037</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2019-03-26T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Send picture through REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622807#M3038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has been a while since my experimenting.&amp;nbsp; I'll try to dig up my code.&amp;nbsp;What you can do is explore the REST API on AGOL and examine the returned html and json.&amp;nbsp; This should give you an idea of the coding needed and the process to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link to a feature should look something like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;https://&amp;lt;services&amp;gt;.arcgis.com/&amp;lt;account&amp;gt;/arcgis/rest/services/&amp;lt;feature&amp;gt;/FeatureServer/&amp;lt;layerID&amp;gt;?token=&amp;lt;token&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link to query attachments (I've used "OBJECTID &amp;gt; 0' for the definition expression:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;https://&amp;lt;services&amp;gt;.arcgis.com/&amp;lt;account&amp;gt;/arcgis/rest/services/&amp;lt;feature&amp;gt;/FeatureServer/&amp;lt;layerID&amp;gt;/queryAttachments?token=&amp;lt;token&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The links to update and add attachments&amp;nbsp;will return a&amp;nbsp;multi-part form:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;https://&amp;lt;services&amp;gt;.arcgis.com/&amp;lt;account&amp;gt;/arcgis/rest/services/&amp;lt;feature&amp;gt;/FeatureServer/&amp;lt;layerID&amp;gt;/&amp;lt;parentID&amp;gt;/updateAttachment?token=&amp;lt;token&amp;gt;


https://&amp;lt;services&amp;gt;.arcgis.com/&amp;lt;account&amp;gt;/arcgis/rest/services/&amp;lt;feature&amp;gt;/FeatureServer/&amp;lt;layerID&amp;gt;/&amp;lt;parentID&amp;gt;/addAttachment?token=&amp;lt;token&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622807#M3038</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-12T02:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send picture through REST</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622808#M3039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to incorporate this into Integromat. A user will submit a picture via Survey123, hits integromat, runs REST to take the picture and update another feature service with the picture&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 18:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/send-picture-through-rest/m-p/622808#M3039</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2019-03-26T18:34:46Z</dc:date>
    </item>
  </channel>
</rss>

