Re: New allowsExternalBinaryDataStorage in Core Data
Re: New allowsExternalBinaryDataStorage in Core Data
- Subject: Re: New allowsExternalBinaryDataStorage in Core Data
- From: Steven Vandeweghe <email@hidden>
- Date: Thu, 25 Aug 2011 20:20:00 +0200
It seems that when the image (or data in general) is larger than 1MB, it's stored in a hidden folder in the same place as your main database. For example, if the application is called MyLionApp and its persistent store is located in the ~/Library/MyLionApp folder, the external files would be stored in ~/Library/MyLionApp/.MyLionApp_SUPPORT/_EXTERNAL_DATA/.
The documentation is indeed very sparse, so I've investigated a bit myself and posted the results here :
http://bluecrowbar.com/blog/2011/08/coredata-external.html
Steven
On Aug 3, 2011, at 10:29 PM, Frédéric Testuz wrote:
> Hello,
>
> I looked at the Core Data release notes of Lion, I also looked the "What's new in Core Data on Mac OS X" video of the WWDC 2011. And I have a question about the new allowsExternalBinaryDataStorage option for binary attribute.
>
> I did some test with an attribute for images. I can see that when I put an big image in the data, the file did not grow.
>
> But where the external file/data is put? If the file is moved or copied, what about theses external data? I tried to find info, but the documentation is very sparse.
>
> Frédéric_______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden