views:

55

answers:

3

hi. 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

A: 

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.

Eiko
the problem is im storing large number of images . wouldnt that affect the size of the app if i store them in ressources file
zdali
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
tanks a lot ^^.
zdali
A: 

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

rano
A: 

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.

Dan Ray