tags:

views:

98

answers:

1

friend's, I need to know how to save image loading through url has a original image in sqlite database.how can i convert image url into binary format and to retrieve original image from database.

Thanks in advance,

A: 

You should be able to use

getContentResolver().openOutputStream()

For more information look at: http://developer.android.com/guide/topics/providers/content-providers.html

An example at: http://www.tutorialforandroid.com/2009/10/how-to-insert-image-data-to-sqlite.html

Daniel Persson
i'm doing it so when the device is in offline,i have to access the contents from database,and this content also have image,thats why i'm doing it. i followed link you have given above,i converted the image and stored in database,but when i get back for db i'm getting nullpointer exception,actually i have table field for image has blob,and i am getting couldn't typecast blob to string..how can i solve this issue.
MGSenthil
This is very difficult to answer without you supplying any code ;)
Daniel Persson