TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark Zajac
NA
3
542
SQLite Database Images
May 31 2020 11:46 AM
I read Amir Ali's article on retrieving drawable images and storing them in a SQLite database, but the code was for only a single image.
In the app I'm currently developing, I need to display several images at once, plus then be able to display several new images on the next screen. With roughly 400 images in total to display.
I have my Database Table created with data type "BLOB" for the images, but in the table, how do I reference the specific images to go in place?
In the article there is the code:
img1 = c.getBlob(c.getColumnIndex(
"image"
));
...
Bitmap b1 = BitmapFactory.decodeByteArray(img1, 0, img1.length);
imageView.setImageBitmap(b1);
Would I need to do that for every image and specifically put them in the table, or is there another way to reference them?
Thank you in advance for your assistance with my problem.
Reply
Answers (
1
)
Recommend technologies we use for App development in .net
How to use Flipkart API in Xamarin Android App