Best way to bundles photos with app: files or in sqlite database?

Posted by Bryan Denny on Stack Overflow See other posts from Stack Overflow or by Bryan Denny
Published on 2010-06-07T14:48:46Z Indexed on 2010/06/07 14:52 UTC
Read the original article Hit count: 271

Filed under:
|
|
|
|

Lets say that I have an app that lets you browse through a listing of cars found in a Sqlite database. When you click on a car in the listing, it'll open up a view with the description of the car and a photo of the car.

My question is: should I keep the photo in the database as a binary data column in the row for this specific car, or should I have the photo somewhere in the resources directory? Which is better to do? Are there any limitations of Sqlite in terms of how big a binary data column can be?

The database will be pretty much be read only and bundled with the app (so the user wouldn't be inserting any cars and their photos).

© Stack Overflow or respective owner

Related posts about database

Related posts about android