Reputation: 5955
I am creating an android application in which I have to insert an image into a local database. Then fetch that image and show in a listview. Can anyone guide me how to do this?
Thanks Tushar
Upvotes: 0
Views: 1001
Reputation: 89
If you are getting Images from the internet then just store the Url of the Image in the DataBase and when you want to use it just convert it to bitmap .
Another way is to save your images`s Path into the Database.
Both way you can store the reference path of your image resource ...
Upvotes: 0
Reputation: 28429
why would you put an image in a database? Just store the image on the SDCard and hold onto its location in the database. Then when you're ready display it in your listview.
What have you tried so far? When you say "guide me", what level of guidance do you need? Have you installed Android? Do you know Java? etc etc. You need to be more specific.
Upvotes: 3