Select to view content in your preferred language

Download/View Feature Service Attachments

1244
2
01-28-2011 07:05 AM
AaronBarkhurst
Emerging Contributor
I have set up a feature service that allows me to add attachments (pictures) using the ArcGIS app for iPhone. The problem that I am having is that any time that I try to access the attachments (images in this case) from either the iPhone app or through Flex, the ArcGIS app and/or Flex attempt to redirect to a URL pointing to that attachment on our ArcGIS server rather than prompting the user to download the file or view it with a specified application. Can anyone tell me what I have set up incorrectly that is causing this problem? I just want to be able to click on the attachment and be prompted to download the file from Flex, or click on the attachment in the ArcGIS app and have the image downloaded.
0 Kudos
2 Replies
AaronBarkhurst
Emerging Contributor
Do I need to set up the MapService config file <SupportImageReturnTypes> with something different than URL? Does this need to be MIME or MIME+URL? Does this issue have to do at all with any of the virtual directories?
0 Kudos
AaronBarkhurst
Emerging Contributor
Do I need to set up the MapService config file <SupportImageReturnTypes> with something different than URL? Does this need to be MIME or MIME+URL? Does this issue have to do at all with any of the virtual directories?


I figured this out. It seems that you do have to change the config file for the MapService for <SupportImageReturnTypes> to MIME. The bad part is that the only way that I could figure out how to get the changes made to the config file to go into effect is to restart the entire GIS server. So if anyone knows a better way to get the config file changes to be instituted please let me know.
0 Kudos