1
Hi, I was wondering if you have how to save an image in the database and show in a listview. If you have how you wanted to know or if there is no way to save an image in the database , how can I call a different image for each Row ....
1
Hi, I was wondering if you have how to save an image in the database and show in a listview. If you have how you wanted to know or if there is no way to save an image in the database , how can I call a different image for each Row ....
-1
It is possible to save images to the database by converting them to an array of bytes (byte[]
) and store them as a BLOB in the bank, but from experience it is not performative, because this constant conversion/disconnection, on account of Listview Adapter, left the UI extremely slow when implemented in this way.
The ideal is to save the image reference in the database and then use these references to access the locally saved images. Libraries like Picasso or Glide already cache locally.
Browser other questions tagged android database
You are not signed in. Login or sign up in order to post.
saves the reference where the image is located, if not https://stackoverflow.com/questions/15659835/how-to-store-image-in-sql-server-database-tables-column
– Jefferson Mello Olynyki