Select to view content in your preferred language

Display SDE raster type inside popup Flex Viewer 3

1809
3
06-22-2012 03:17 PM
MichaelBarker
Occasional Contributor
I'm serving an SDE feature class as a map service where one of the fields is a type of raster.  I'm using Flexviewer v3 and I've created a popup for this service, however I would also like to display the image attribute associated with each feature as part of the popup.  Through the popups xml I'm making use of the <medias> tag and declaring the type of image and using the imagesource to declare the field that contains the image.  So when I click on a feature inside the viewer the popup comes up and all I get for the raster is an outline box, no image.  Am I doing this correctly or I guess can it be done when the image is stored as a raster type inside an SDE feature class?  XML code below.

Thanks in advance.

[HTML]<configuration>
  <title>Main Title</title>
  <fields>
    <field name="Property_Name" alias="Property Name:" visible="true"/>
    <field name="Project" alias="Project Geophysicist:" visible="true"/>
    <field name="Comments" alias="Comments:" visible="true"/>
  </fields>
  <medias>
    <media type="image" imagesource="Image"/>
  </medias>
</configuration>[/HTML]
Tags (2)
0 Kudos
3 Replies
MehulChoksey
Esri Contributor
Unfortunately this is not supported by REST api and Flex api

Mehul
0 Kudos
ColeS
by
Emerging Contributor
Does anyone know if this functionality is possible using the Builder for Flex Viewer 3.2 or 3.3? 

We have tried in 3.2 (Server 10 SP 4) and it doesn't seem to work, we are about to upgrade to 3.3.
0 Kudos
RhettZufelt
MVP Notable Contributor
The code you have is expecting a path to the image in your "Image" field, not an image itself.

Where you say one of the fields is a type of raster..  Are you saying that you have the raster stored in a BLOB field in the table itself?

If so, the only BLOBs supported by the REST are the ESRI attachments.

If this is the case, you could use your data as the lookup table and use the attachemnts tool to extract the images out, then add them in as attachments.

Attachments are fullly supported within the flex popups.

R_
0 Kudos