Attachment Manager

435
1
11-06-2012 06:52 AM
VIKRANTKRISHNA
New Contributor III
I am using popup in my application to edit the feature layers. I want to save the attachments on the device when the application goes in disconnected mode. Is there a way I can download attachment and save it on the device.
0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
The newly attached attachments resided on the device until you call [AGSAttachmentManager postLocalEditsToServer]. If you want to download all existing attachments from server then you should use use *downloadAttachmentInfos* method and then loop through all *AGSAttachmentManager.attachments* and download each one by calling *downloadAttachmentDataForId:*.

Hope this helps!

Regards,
Nimesh
0 Kudos