im making an application that store multipe information like name descripti开发者_C百科on 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
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.
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.
精彩评论