Select to view content in your preferred language

Getting Attachments with token in a map service

514
3
02-29-2012 01:23 PM
Matrix_Solutions_Inc_Geomatics
Regular Contributor
Hello,
I have successfully built the functionality to load an image stored as an attachment in silverlight by retrieving the url of the attachment and binding to it:
(hxxp://Server/ArcGISServer/rest/services/PublishedMap/MapServer/0/3/attachments/4)

However i have implemented token authentication and i was wondering if its still possible to retrieve the attachment. I cant seem to get it now. do i need to embed the token to the url or something?
(hxxps://Server/ArcGISServer/rest/services/PublishedMap/MapServer/0/3/attachments/4?token=WCQfGMQZ7SmTProN6fX4SZRBr_0pRFDCvYGzkO2I9BlY2vdsKtQRXoHj8pVoFL_izGuLKiBzd3zZlqFv5U767Q..)
0 Kudos
3 Replies
Matrix_Solutions_Inc_Geomatics
Regular Contributor
Figured it out that i had to enable anonymous access on the arcgisoutput folder 😄
0 Kudos
SheridanNava
Occasional Contributor
Hello,
I have successfully built the functionality to load an image stored as an attachment in silverlight by retrieving the url of the attachment and binding to it:
(hxxp://Server/ArcGISServer/rest/services/PublishedMap/MapServer/0/3/attachments/4)


hi! how did you do that? i was looking do under code behind without results.

:confused:
0 Kudos
LabanNdungo
Deactivated User
hi! how did you do that? i was looking do under code behind without results.

:confused:


Snava, did you ever get an answer for this? I'm trying to retrieve the URLs for attachments and display them in a carousel but its proving a very hard task. Any help from Dr. Stereo?
0 Kudos