image service will not display in flex app

3033
2
10-20-2010 07:19 AM
eddiequinlan
Occasional Contributor
I'm trying to add our image data to my existing flex app.  All of my map services (dynamic and tiled) function and display properly in the flex app.  I've created two test image services thru the ArcGis 9.3.1 server.  One is a dynamic map with images added; the other is an image service with the appropriate images.  These display correctly in the ArcGIS server manager (manage services).

However, when i try to add either one to the flex app nothing displays and I get no errors.  With the image service, I did get a solid black map to display by setting the "imageformat" = jpg.  I could also adjust the "alpha" setting, which did affect the black map.  Any other imageformat setting displayed nothing.

Any suggestions???????

Sincerely,
Eddie
Okaloosa County Property Appriaser
GIS Coordinator
0 Kudos
2 Replies
PeterBecker
Esri Regular Contributor
Is it posisble that you are serving something like Elevaiton data that is >8bit/channel. If so check to add a renderer on the ImageServcies. Also please first check out the following:

Samples are under image services folder:
http://help.arcgis.com/en/webapi/flex/samples/index.html

API reference to the Image Layer
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/ArcGISImageServiceLayer.html

Here are some links that would help debug:
http://help.arcgis.com/en/webapi/flex/help/index.html#references/debugging_tips.htm#
http://help.arcgis.com/en/webapi/flex/help/index.html#references/using_crossdomain_xml.htm#
http://help.arcgis.com/en/webapi/flex/help/index.html#references/faq.htm#

After that bset to review what is being returned using something like Fiddler.
0 Kudos
eddiequinlan
Occasional Contributor
Peter,

The problem was the spatial reference was not set in ArcCatalog.  Therefore, it still displayed in the server as the image, but not referenced properly in the app.  Thanx for the debugging links; I learned a few new tricks with them.

Thanx,
Eddie
0 Kudos