Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8050275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:01:40+00:00 2026-06-05T07:01:40+00:00

I am trying to add a new model. The new model will have one

  • 0

I am trying to add a new model. The new model will have one new entity and a relationship from a current entity to the new one. I have created the new model and set it as current. Although everything works fine and i can access the new entity, some ‘binary data’ entries are nil.

I tried adding a mapping model and then migrating, but the results are the same. The ‘binary data’ stored are UIImage. Some small thumbnails are being migrated. None of the full size UIImages are being migrated.

I am thinking that maybe the entities that are automatically stored externally (due to their size) are not being migrated.

UPDATE

I build a small project that stores image collections. I tried to create a new model and everything worked fine. Then i compare the new project with the old one and the only difference was the “Allows External Storage”. I selected this option on the new project, created a new model and the pictures were missing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:01:42+00:00Added an answer on June 5, 2026 at 7:01 am

    I am thinking that maybe the entities that are automatically stored externally (due to their size) are not being migrated.

    That’s exactly what happens. It’s an Apple bug. Binary data over a certain size gets stored by Core Data in an external support folder within the Documents folder. For some reason, during a migration, Core Data simply wipes that external storage folder – gulp! So thumbnail image data migrates ok as it’s not stored externally to the SQLite DB but larger external binary files just get deleted.

    The solution I’ve come up with is when your code initializes a persistent store coordinator for your Core Data model run a few checks before attempting automatic migration. Check whether the new model is compatible with the current stored model. If it’s not then you know that Core Data is about to migrate your old model to your new version and in doing so will wipe the external storage folder. Before it does so simply move the external storage folder to a temporary location. Once the migration has completed replace new empty external storage folder generated by Core Data.

    I’ve documented the full solution with source code in this blog post:

    http://www.nickkuh.com/iphone/core-data-migration-woes-with-binary-data-and-external-storage-data-loss/2012/06/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add a new ADO.Net Entity Data Model to an MVC project
I am trying to get a new dynamically created row to add to a
I am trying to add a new menu item to Eclipse's popupmenus. It really
Im trying to add an element to a database and then return a new
I'm trying to add a variable within a new variable. My first variable is:
I'm fairly new to JQuery and I'm trying to add multiple form fields for
I am new to wordpress and widgets. I am trying to add another field
Hey there, new to AJAX, JS.. Im trying to add to a Javascript/Ajax search
I'm trying to create a new contact and add it to the AddressBook but
I'm trying to create a new ASP.NET website and add it to my subversion

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.