I want to store image from camera in android application . I want to know want datatype I should use . Is I need to store image in application folder ? I want to know How to store image to drawable_mdpi. I am new in Android . So I want to see complete answer with code sample.After sto开发者_如何学Cre image , I want to view images from database with gallery.
Well You have to store the image in the form of byte[]
into the database SQLite
. Once you have captured image You can have it byte[]
and then you can store them onto the database and one you stored them onto the database you can also retrieve a byte[]
from database and then once you get byte[]
from database you can decode the byte[]
into bitmap
.
Hope this guide helps?
http://sree.cc/google/storing-and-retriving-images-in-sqlite-database-in-android
Regards
sHaH
精彩评论