Select to view content in your preferred language

AGSAttachmentManager will get attachments from AGSFeatureLayer with map service?

512
0
01-10-2013 12:47 AM
PrasadJ
Emerging Contributor
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.

Regards,
Prasad J
0 Kudos
0 Replies