A
A
Afonya Shermatovsky2016-04-24 18:00:55
Android
Afonya Shermatovsky, 2016-04-24 18:00:55

How to store images in android database?

Explain how to store pictures in Android local database. I know that it is impossible to store images and store links to them like. Please tell me how to do it and show the code please. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2016-04-24
@gadfi

I know that it is impossible to store images

you can - a blob column in the database, you can base64, but you don’t need it because it’s very slow (but just for general development, it’s possible)
I won’t show the code, it’s useless - it depends on your architecture, otherwise the spherical horse is in a vacuum, but in general terms - save in the file is not in the ui stream (rx, service or at least asynctasc everything is in your hands)
show using picasso

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question