<?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 Re: Pass an image as a geoprocessing parameter in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pass-an-image-as-a-geoprocessing-parameter/m-p/287337#M26454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your GP service configured to allow uploads?&lt;/P&gt;&lt;P&gt;If you are using API 3.x then you can upload files with a standard request:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;esri.request({
&lt;SPAN&gt;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/arcgis/rest/services/GP_Services/&amp;lt;gservice&amp;gt;/GPServer/uploads/upload",&lt;/SPAN&gt;
&amp;nbsp; form: dojo.byId("uploadForm"),&amp;nbsp; // dom element
&amp;nbsp; content: { f: "pjson" },
&amp;nbsp; handleAs: "json",
&amp;nbsp; load: uploadSuccess,&amp;nbsp; // callback
&amp;nbsp; error: uploadFailed&amp;nbsp;&amp;nbsp; // on error
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML upload form:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;form enctype="multipart/form-data" method="post" id="uploadForm"&amp;gt;
&amp;nbsp; &amp;lt;div class="field"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label class="file-upload"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;span&amp;gt;&amp;lt;strong&amp;gt;Add File&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type="file" name="file" id="inFile" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/form&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:53:27 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2021-12-11T13:53:27Z</dc:date>
    <item>
      <title>Pass an image as a geoprocessing parameter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pass-an-image-as-a-geoprocessing-parameter/m-p/287336#M26453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a JSAPI app that I have built that uses a geoprocessing tool to pass information back to our ArcGIS server.&amp;nbsp; The geoprocessing tool is used to post information to another vendors API.&amp;nbsp; I have everything working very well except for passing an image from my app.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the parameters I would like to pass back is an image captured from a iPad camera.&amp;nbsp; I am using the following to capture the image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input id="accountPhoto" name="attachment" type="file" accept="image/*" capture="camera" data-clear-btn="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different variations of passing it back into the geoprocessing parameters, but I have had no luck.&amp;nbsp; What would be the proper way to pass a captured image as a geoprocessing parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 22:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pass-an-image-as-a-geoprocessing-parameter/m-p/287336#M26453</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2016-06-14T22:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an image as a geoprocessing parameter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pass-an-image-as-a-geoprocessing-parameter/m-p/287337#M26454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your GP service configured to allow uploads?&lt;/P&gt;&lt;P&gt;If you are using API 3.x then you can upload files with a standard request:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;esri.request({
&lt;SPAN&gt;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/arcgis/rest/services/GP_Services/&amp;lt;gservice&amp;gt;/GPServer/uploads/upload",&lt;/SPAN&gt;
&amp;nbsp; form: dojo.byId("uploadForm"),&amp;nbsp; // dom element
&amp;nbsp; content: { f: "pjson" },
&amp;nbsp; handleAs: "json",
&amp;nbsp; load: uploadSuccess,&amp;nbsp; // callback
&amp;nbsp; error: uploadFailed&amp;nbsp;&amp;nbsp; // on error
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML upload form:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;form enctype="multipart/form-data" method="post" id="uploadForm"&amp;gt;
&amp;nbsp; &amp;lt;div class="field"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label class="file-upload"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;span&amp;gt;&amp;lt;strong&amp;gt;Add File&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type="file" name="file" id="inFile" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/label&amp;gt;
&amp;nbsp; &amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/form&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pass-an-image-as-a-geoprocessing-parameter/m-p/287337#M26454</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-11T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an image as a geoprocessing parameter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pass-an-image-as-a-geoprocessing-parameter/m-p/287338#M26455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your reply.&amp;nbsp; It was exactly what I was looking for.&amp;nbsp; I did not have uploads turned on either.&amp;nbsp; I got them turned on and reworked the workflow to post the uploaded photo to our vendors API. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/pass-an-image-as-a-geoprocessing-parameter/m-p/287338#M26455</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2016-06-15T21:17:39Z</dc:date>
    </item>
  </channel>
</rss>

