E
E
eXhausted2012-05-29 18:50:19
Objective-C
eXhausted, 2012-05-29 18:50:19

Storing images in CoreData?

Good afternoon.
Faced a problem of such a plan: you need to store downloaded images in your phone. I can’t decide how best to save pictures: put them in NSData in CoreData, or directly in a folder on the phone. Tell me how to do it better and which one will win in which of the options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
No_Time, 2012-05-29
@No_Time

If the pictures are small (<100kb), then calmly store them in the database, store medium ones up to 1mb in the database too, but in a separate entity, anything larger - write to disk, and links to the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question