title: ABPersonSetImageData not working
body: <p>I am trying to set an image for an contact that is store in my iPhone.
  I used follwing code snipt 
   - (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person {</p>
  
  <pre><code>UIImage *image = [UIImage imageNamed:@"icon.png"];
  NSData *data=UIImagePNGRepresentation(image);   
  CFDataRef dr = CFDataCreate(NULL, [data bytes], [data length]);
  </code></pre>
  
  <p>ABAddressBookRef iPhoneAddressBook = ABAddressBookCreate();
      CFErrorRef erf=NULL;</p>
  
  <pre><code>if (ABPersonSetImageData(person, dr, nil))
  {
      NSLog(@"successfully set image");
  }
  else
  {
      NSLog(@"not successfully set image");
  }
  
  if( ABAddressBookSave(iPhoneAddressBook, &amp;erf) )
  {
      NSLog(@"save %s",erf);
  }
  else {
      NSLog(@"Not success");
  }
  
  
  
  CFRelease(dr);
  </code></pre>
  
  <p>CFRelease(iPhoneAddressBook);
   [self dismissModalViewControllerAnimated:YES];</p>
  
  <pre><code>return NO;
  </code></pre>
  
  <p>}</p>
  
  <p>every thing is working but the image of the contact does not change.
  plz help!</p>