0

I have to store large no of images (around 50,000) through my application & each image has size around 400KB. I want to store all these images in SD card & I can, but I want to do it in better way.Because I will also need to encrypt/decrypt all these files & of course retrieving back.

So anyone please, Guide me how should I approach this.

Arun Badole
  • 10,977
  • 19
  • 67
  • 96
  • 2
    So you want to store 20Gigs of images on Android? In a single app? – ppeterka Feb 19 '13 at 12:34
  • Ouch!! Around 50000 on an SD Card? Quick math = 19 odd GB eh? – Siddharth Lele Feb 19 '13 at 12:34
  • Yes it can increase upto this much. – Arun Badole Feb 19 '13 at 12:34
  • Are you aware that most Android devices don't even have this much storage? – ppeterka Feb 19 '13 at 12:35
  • I am working for an dedicated Android device.So the app won't be for any device. – Arun Badole Feb 19 '13 at 12:35
  • 2
    Wouldn't storing them on a server and accessing them when needed do a much better job? Kinda like the Zedge app if you would. – Siddharth Lele Feb 19 '13 at 12:36
  • @Siddharth Yes it will.But first I have to store all images in device. – Arun Badole Feb 19 '13 at 12:37
  • how about integrating the app with dropbox? – Rohit Feb 19 '13 at 12:37
  • Why do you **have** to store all the images on the device? Why is that a requirement? – ppeterka Feb 19 '13 at 12:39
  • @ppeterka basically the app will be used on rural areas, so initially I will have to store images in device itself. – Arun Badole Feb 19 '13 at 12:40
  • First of all decide what device are you going to use for this, cause you can't expect much device support here, if it's going to be locally distributed. I'm sure it is, cause 20GB app from the market place is just a bloody joke. Majority of Android devices are having 4-16GB of storage and that event cut down because of the OS and other apps taking space. OR implement a web service get the images on request and find WiFi one way or the other in rural areas. – JanithaR Feb 19 '13 at 13:06

2 Answers2

0

Most Android devices won't even have this much storage. If you store these images on the device then the device will have to be a higher-priced one which will put it out of the reach of most of your target users (I am assuming it is farmers etc from your comment that it is for people from rural areas).

If price is not an issue and you have to store these images on the device then these might help:

Community
  • 1
  • 1
Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84
0

Besides considering not storing the images on the device due to huge size, you should consider putting them into single container for ease of management. If you don't plan to update the image set on device, you can use ZIP archive. If you want to update the images on the fly, some virtual storage system, such as our Solid File System (SolFS), would work. SolFS supports flexible file encryption (both whole-storage and per-file), compression and other features of advanced file systems. And you can download the complete container and update it easily after that.

Eugene Mayevski 'Callback
  • 45,135
  • 8
  • 71
  • 121