A
A
Afonya Shermatovsky2016-03-11 20:07:34
MySQL
Afonya Shermatovsky, 2016-03-11 20:07:34

How to store pictures in database for android application?

The application should use pictures with formulas, how can they be stored in the database and taken from there?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Gamega, 2016-03-11
@iphone4ik94

for those who store pictures in the database there is a separate frying pan
and if it’s no joke, the picture in the database is a very bad practice, store it on the map, and store the paths in the database, the picture in the database will slow down and limit you in the toolkit

I
Ilya Pavlovsky, 2016-03-12
@TranE91

I can't help but agree with gadfi. In general, SQLite has such an opportunity - to store in blob format, but as the database grows, the speed of data fetching from there will decrease, so it's better to store links to the image cache.

L
lomikman, 2016-03-11
@lomikman

you can just save it to a folder on external storage and store the name / id in the database. you can also convert to base64 and store in this format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question