title: Cross platform UIImage NSImage in NSData format
body: <p>I have an app on the mac and iPad that stores many images in the core data backed database. Previously they were images from URL's so there was no worries I just went from URL to data. But now I am creating thumbnails from the URL then saving it into the database. The issue I have is that I want to store them as NSData, but cant seem to find a format that I can store using the mac app, that the ipad version will be able to recognize and create an image from. </p>
  
  <p>I tried, </p>
  
  <pre><code>NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithFocusedViewRect:NSMakeRect(0, 0, image.size.width, image.size.height)];
  </code></pre>
  
  <p>but then I get an error that Ipad does not recognize the data in DB and is incompatible.</p>
  
  <p>anyone have ideas? or found a solution to this problem? </p>