Map service GetSupportedImageReturnTypes method

Gets the supported formats for retrieving images generated by a map service.


Return Value

An esriImageReturnType enumeration.


A map service is often used to generate dynamic map images, legend images (swatches), etc. To retrieve the image content, two options are available: MIME and URL. All map services support returning image content in MIME format. If enabled, a map service can also support providing a URL to image content. If the enumeration returned from GetSupportedImageReturnTypes references MIME, only MIME formatted images can be returned. If the enumeration references the URL format, both MIME and URL can be utilized. When generating an image, for example using the ExportMapImage method, the ImageType object is used to define the format.



MapService_MapServer mapservice = new MapService_MapServer();

mapservice.Url = "http://localhost:6080/arcgis/services/MapService/MapServer";

// Mime or Url

esriImageReturnType imgreturntype = mapservice.GetSupportedImageReturnTypes();


Dim mapservice As MapService_MapServer = New MapService_MapServer()

mapservice.Url = "http://localhost:6080/arcgis/services/MapService/MapServer"


' Mime or Url

Dim imgReturntype As esriImageReturnType = mapservice.GetSupportedImageReturnTypes()


String serviceURL = "http://localhost:6080/arcgis/services/MapService/MapServer";

MapServerBindingStub mapService = new MapServerBindingStub(serviceURL);


//Mime or Url

EsriImageReturnType imgReturnType = mapService.getSupportedImageReturnTypes();

System.out.println("Image Return Type: " + imgReturnType.getValue());