AGSAttachmentManager will get attachments from AGSFeatureLayer with map service?

Discussion created by pjsetty on Jan 10, 2013
Hi Friends,

Please, Help me to get attachments into the AGSAttachmentManager from AGSFeatureLayer having Map service url.

#define featureLayerUrlString @"http://XXXXXX/ArcGIS/rest/services/PWA_XXX/MapServer/3"

AGSGraphic* feature = [_featureLayer lookupFeatureWithObjectId:oid];
   self.attManager = [_featureLayer attachmentManagerForFeature: feature];

    AGSAttachment * Atts=[[self.attManager attachments] objectAtIndex:0];
    self.imageView.image=[[UIImage alloc] initWithData:Atts.data];

Please, Suggest me to get the Attachments from the MapService.

Prasad J