java - Image storage and retrieval using sqlite db -


i have few questions database storage , retrieval of images. have activity prompts user either take picture using camera or selecting existing gallery. when picture has been taken/selected, shown in activity , should saved in sqlite database (i use own content provider).

  1. should store images blob or store them seperately , store uri pointing requested image?

  2. how show image , save it?

it depends on size of images.

saving images disk , databasing uri's is sensible suggestion photographs, if storing small thumbnails (like avatars), these safely stored blobs without great performance hit.

as application description suggests taking photographs, should use uri's.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -