Take the 2-minute tour ×

im making an application that store multipe information like name description images for each entity. ( large number of entity). I have an issue in storing images in for this application. whats the best way to store them. database or document directory. and also im affraid that the images will increase the size of my application. waiting for your advises. thx

share|improve this question

3 Answers 3

up vote 0 down vote accepted

For binary data, use a file bases approach. If you want to manage them with a database (i.e. Core Data), just store the filenames and any meta data you want to handle in the database.

share|improve this answer
the problem is im storing large number of images . wouldnt that affect the size of the app if i store them in ressources file –  dali Aug 23 '10 at 7:57
You either store them in files or in a database - so the images will take their size somewhere. The total size won't be smaller when including them in a database. It's just that a database is the wrong place for them. –  Eiko Aug 23 '10 at 9:27
tanks a lot ^^. –  dali Aug 24 '10 at 12:07

Have a look here for a very good rule of thumb http://stackoverflow.com/questions/2090028/core-data-storing-images-iphone

share|improve this answer

SQLite supports blobs. I don't know the wisdom of using it as an actual store for image data--I imagine its performance would depend a lot on the real world particulars of your usage--but it's an option.

share|improve this answer

Your Answer


