024fpt

Getting Attachments with token in a map service

Discussion created by 024fpt on Feb 29, 2012
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..)

Outcomes