<?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 Trying to get Raster Attribute image in a feature layer. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173576#M16079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a point layer loaded into my SQL SDE database and one of the fields is a Raster type.&amp;nbsp; I have created a couple of points in this layer and edited the attributes using ArcEditor including uploading a picture to each point into this Raster field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'd like to do now is programmatically get to the image so I can display it on-screen in my JavaScript API and do other stuff with it when it comes to printing.&amp;nbsp; The problem is I can't seem to find any information on how to retrieve the actual image which must be stored somewhere in SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the Identify Task I can get to the other attributes fine, but I just get a value of &amp;lt;raster&amp;gt; back for the field containing the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please show me where to find out how to do this, or please explain it?&amp;nbsp; Some JavaScript method is preferable, but I'll settle for dot net if that's the only way (e.g. by using the objectid to get the image from SDE server-side).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that's clear?&amp;nbsp; Thanks, Mark.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 13:17:45 GMT</pubDate>
    <dc:creator>MarkSmith</dc:creator>
    <dc:date>2013-01-08T13:17:45Z</dc:date>
    <item>
      <title>Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173576#M16079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a point layer loaded into my SQL SDE database and one of the fields is a Raster type.&amp;nbsp; I have created a couple of points in this layer and edited the attributes using ArcEditor including uploading a picture to each point into this Raster field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'd like to do now is programmatically get to the image so I can display it on-screen in my JavaScript API and do other stuff with it when it comes to printing.&amp;nbsp; The problem is I can't seem to find any information on how to retrieve the actual image which must be stored somewhere in SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the Identify Task I can get to the other attributes fine, but I just get a value of &amp;lt;raster&amp;gt; back for the field containing the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please show me where to find out how to do this, or please explain it?&amp;nbsp; Some JavaScript method is preferable, but I'll settle for dot net if that's the only way (e.g. by using the objectid to get the image from SDE server-side).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that's clear?&amp;nbsp; Thanks, Mark.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173576#M16079</guid>
      <dc:creator>MarkSmith</dc:creator>
      <dc:date>2013-01-08T13:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173577#M16080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't looked into this very far, but you might look at some of the "editing" samples such as this one - &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_attachments/index.html"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample, and a few others in the editing section, allow the user to add/view/delete attachments (photos, documents, .pdf's, etc.)&amp;nbsp; You might explore this option for maintaining your photos...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173577#M16080</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2013-01-08T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173578#M16081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, I hadn't found that sample.&amp;nbsp; However looking at the URL of the hyperlink the dijit creates, I can understand all of it except the last number: &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0/5505779/attachments/8867"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0/5505779/attachments/8867&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5505779 is the objectid of the feature in layer 0, but I assume 8867 is a reference to the id of the uploaded image to that feature, but without using the dijit, I wouldn't know how to get that number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 14:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173578#M16081</guid>
      <dc:creator>MarkSmith</dc:creator>
      <dc:date>2013-01-08T14:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173579#M16082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Read up on attachments in ArcGIS 10.1 &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/An_overview_of_the_Attachments_toolset/00170000015m000000/"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It explains that attachments are stored in a separate table to allow for a 1 to many relationship.&amp;nbsp; I think the 8867 might be referring to the id of the attachment in the related table...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 15:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173579#M16082</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2013-01-08T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173580#M16083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having looked at the article on attachments, I think this is different to what I have.&amp;nbsp; I am not using the attachment toolset with a match table, I simply have a Raster field type in my layer's base table that I defined when I originally created the layer and fields in SDE.&amp;nbsp; It is the image loaded into this field I want to access in my API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, Mark.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 07:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173580#M16083</guid>
      <dc:creator>MarkSmith</dc:creator>
      <dc:date>2013-01-09T07:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173581#M16084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might take a look at this old javascript api sample from a few years ago... This sample utilized the old ArcPhoto add-in, and if I recall correctly, there was some code for pulling rasters out of a field in your geodatabase and including them in your application's info window... &lt;/SPAN&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=16041"&gt;LINK&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 14:41:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173581#M16084</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2013-01-09T14:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173582#M16085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again.&amp;nbsp; I've taken a look, and as well as using the API as a front-end, this seems to make use of the Web ADF server-side - something I'm trying to purge my systems of.&amp;nbsp; It seems very complicated for what I hoped was a simple thing.&amp;nbsp; But perhaps I'm starting in the wrong place - maybe I should make use of the attachment toolset rather then a raster field type?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 08:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173582#M16085</guid>
      <dc:creator>MarkSmith</dc:creator>
      <dc:date>2013-01-10T08:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to get Raster Attribute image in a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173583#M16086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really not fully up to speed with attachments and storing rasters in fields... but I think the attachments tools that I pointed you towards the other day might be your best direction at this point.&amp;nbsp; I think they perform the same as what you are currently doing, but instead of storing the rasters in a field in your feature class, I believe they get stored in a field in a table that is related to your feature class - in a one to many relationship.&amp;nbsp; If I understand correctly, your setup now will only allow a one to one relationship, unless you created many different fields to store rasters in.&amp;nbsp; The attachment tools will create the relationship to the related table for you.&amp;nbsp; This is the direction that the current ESRI samples have gone, using the attachment editor.&amp;nbsp; You might have to reconstruct the work that you've done thusfar, but it might make it easier/better in the long run.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 15:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-get-raster-attribute-image-in-a-feature/m-p/173583#M16086</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2013-01-10T15:49:47Z</dc:date>
    </item>
  </channel>
</rss>

