1

I am using volley to show the user images and other data like(name,description) while they are online. It's working fine. I want to save the image and data in sqlite so that the user can see them when they don't have internet connection. I know how to insert and retrieve data from sqlite but I don't know how to insert image from url to sqlite. Can anyone suggest me what can I do? Thank You

Julfikar
  • 1,353
  • 2
  • 18
  • 35

1 Answers1

1

You have so many option to store image in sqlite:

  1. convert your bitmap to base64 and store Base64 image string to your db.

  2. Store your bitmap downloaded from url in cache memory and store the cache path in your db.

  3. Store the server url in db and use imageLoader to download and show image from url.

Anjali
  • 1
  • 1
  • 13
  • 20