I am new to iPhone application development. My application has its own contact screen which has all contacts of phone book and also application's contacts in single list.
My application should store all contacts in its dataabse, it should not display contact screen like contact picker opens.
For this I have created entity of contact to store contacts in my application's persistent store.
I have read iphone's contacts using AddessBook APIs. I am facing some problems in that.

1. Problem in storing contact image : To get contact image I have used ABPersonCopyImageData. It returns CFDataRef. How can we store CFDataRef in database and retrieve it. Because there are only primitive data types available in entity's attribute type (NSArry type is not available).
2. Problem in storing Multivalue Properties : If any any contact has multiple numbers, then we received multiple value for number. Is there any API or mechanism available in core data ? or we have to store them using custom mechanism like using delimiter.