<?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 AddAttachment for images not on disk (video capture) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307037#M28180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to use a mobile device's camera to capture an image and then upload that image as a feature attachment.&amp;nbsp; No problem getting the image from the camera.&amp;nbsp; I create an &amp;lt;img&amp;gt; tag, and set the src to be a data URI, and show it on the web page in a gallery.&amp;nbsp; Once satisfied, I'd like to upload each image as an attachment to the selected feature.&amp;nbsp; They're obviously not stored on disk, so how can I upload the images when the API requires that the attachment be specified using a file upload field in a form?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate any insight!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 20:27:40 GMT</pubDate>
    <dc:creator>ChrisMusial</dc:creator>
    <dc:date>2013-04-03T20:27:40Z</dc:date>
    <item>
      <title>AddAttachment for images not on disk (video capture)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307037#M28180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to use a mobile device's camera to capture an image and then upload that image as a feature attachment.&amp;nbsp; No problem getting the image from the camera.&amp;nbsp; I create an &amp;lt;img&amp;gt; tag, and set the src to be a data URI, and show it on the web page in a gallery.&amp;nbsp; Once satisfied, I'd like to upload each image as an attachment to the selected feature.&amp;nbsp; They're obviously not stored on disk, so how can I upload the images when the API requires that the attachment be specified using a file upload field in a form?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate any insight!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 20:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307037#M28180</guid>
      <dc:creator>ChrisMusial</dc:creator>
      <dc:date>2013-04-03T20:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: AddAttachment for images not on disk (video capture)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307038#M28181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this is exactly what you want but try this link: &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2010/09/01/building-web-applications-for-ios-and-android-using-dojox-mobile/"&gt;http://blogs.esri.com/esri/arcgis/2010/09/01/building-web-applications-for-ios-and-android-using-dojox-mobile/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you scroll down it describes ways to make the camera accessible to your device. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am hoping to do something similar for an iPad so let us know how it goes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 10:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307038#M28181</guid>
      <dc:creator>CharmaleeSandanayake</dc:creator>
      <dc:date>2013-04-04T10:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: AddAttachment for images not on disk (video capture)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307039#M28182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not sure if this is exactly what you want but try this link: &lt;A href="http://blogs.esri.com/esri/arcgis/2010/09/01/building-web-applications-for-ios-and-android-using-dojox-mobile/"&gt;http://blogs.esri.com/esri/arcgis/2010/09/01/building-web-applications-for-ios-and-android-using-dojox-mobile/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When you scroll down it describes ways to make the camera accessible to your device. &lt;BR /&gt;&lt;BR /&gt;I am hoping to do something similar for an iPad so let us know how it goes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; Making the camera accessible to the device isn't the problem for me - my issue is that I grab the images from the camera and store them as an object in memory, but the addAttachment method seems to require them to be in a file which the user then has to browse for and select.&amp;nbsp; The example you provided follows this same approach:&amp;nbsp; the user needs to browse for the pictures and then select them.&amp;nbsp; My application allows the user to snap pictures and places them in a gallery of thumbnails on the web page.&amp;nbsp; The user can remove images from that gallery or continue snapping pictures to add to the gallery.&amp;nbsp; Once done, they can click 'Save', and this should upload all the images in the gallery as attachments to the current feature.&amp;nbsp; It wouldn't make sense to require the user to the go and individually browse for and select image files for each image in the gallery.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 12:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307039#M28182</guid>
      <dc:creator>ChrisMusial</dc:creator>
      <dc:date>2013-04-04T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: AddAttachment for images not on disk (video capture)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307040#M28183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was there any solutions on using addAttachment without using the form based method?&amp;nbsp; I too would like to attach a user files that is not selected using a form....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 18:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/addattachment-for-images-not-on-disk-video-capture/m-p/307040#M28183</guid>
      <dc:creator>JamesFinerfrock</dc:creator>
      <dc:date>2013-07-22T18:02:51Z</dc:date>
    </item>
  </channel>
</rss>

