开发者

How to store image from camera in SQLiteDatabase and show preview In Android Application?

开发者 https://www.devze.com 2023-03-25 23:51 出处:网络
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_md

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

0

精彩评论

暂无评论...
验证码 换一张
取 消