I'm adding a photo attachment to a feature and posting it to the server but unable to do it due to a network error that I couldn't figure out... Please help.
In the Image Picker delegate method, the attachment is added to the feature attachmentManager and posted to the server: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { NSString *mediaType = [info objectForKey:UIImagePickerControllerMediaType]; if ([mediaType isEqualToString:(NSString*)kUTTypeImage]) { // once they take/choose a picture, add it to the attachments collection and reload the table data UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage]; NSString *photoName = [@"Photo " stringByAppendingString:[NSString stringWithFormat:@"%d", [_attachmentManager.attachments count] + 1 ]];
Do we need a usename/password to edit a feature service?
I tried the OfflineFeatureEdittingSample and it does not work either on the live mode. However, on the local mode it can save the photo to the local replica geodatabase and later sync it to the live server...
Any help is much appreciated. I'm using SDK 10.2.1 and ArcGIS Server 10.2.1 sync-enabled feature service.