Chandra Sekhar
Chandra Sekhar

Reputation: 19500

Which one is preferable to store images in android?

In my application I am generating some images which are only needed to my application but it should persist in the phone permanently.

To do this I have two ideas:

  1. Store in a separate folder in sdcard and hide this and maintain a database with imageIDs and imagepaths.
  2. Store the images itself along with their IDs in the database.

Out of those two which one is better? Is there any other solution that is better with respect to the performance and storage space? If yes, then please suggest a good solution.

Thanks in advance.

Upvotes: 0

Views: 97

Answers (1)

user370305
user370305

Reputation: 109257

The first one..

1: Store in a separate folder in sdcard and hide this and mentain a database with imageIDs and imagepaths.

is better to avoid large database file and conversion of blob type to image and vice-versa..

Upvotes: 1

Related Questions