title: Core Data - Storing Images (iPhone)
body: <p>I have an application where I allow the user to add an image for their account. </p>
  
  <p>I wish to know how to store an image (obtained from the camera or photo library) <strong>using Core Data</strong>, as I may offer a backup facility for the user and would be looking to transfer the image data to a server.</p>
  
  <p>I have come across the design suggestion of creating an <code>Image</code> model object and creating a 1-to-1 relationship with the <code>User</code> model object (so that the associated Image object is not called up unless required). However, I am unsure how to practically store the image and whether this is potentially fatal in terms of performance.</p>
  
  <p>I would be grateful for any advice on the approach and pitfalls from anyone who has attempted this.</p>