Can i get an image from SD card and store it in the application database??
Is this idea effective in my application??
Thanks in advance!!
Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can get the image from your sd card and store it in sqlite database, we have done it but it will be too expensive for your device……. So be careful about that,
call image picker intent by calling this
It will open default gallery picker view , when you select an image you will be returned in your current activity, So override
onActivityResult()and look for result code 12.in that code you can get cursor by these lines
From that cursor object you can get the file path of image by these lines
Here is the bitmap object
Get byte arrays
Now you have to store imageArray as blob in your database. And you are done…. Don’t forget to refer this post from where i got the solution…