D
D
Dmitry Shelygin2016-07-11 22:45:18
Android
Dmitry Shelygin, 2016-07-11 22:45:18

How to get an image from the database with Android?

There is an application for Android.
It is necessary that it makes a request to the database and receives some text and a picture from the required table.
They say that it is better to store the pictures themselves in the file system, and store only links to them
in the database. How can an android get a picture in this case?
DB MySql

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2016-07-11
@GavriKos

DB on a remote server? Then you need a backend and an API for it. Directly connecting to a database on a remote server through an android application is bad.
In the rest - everything is correct. The backend retrieves the path to the image from the database and gives this file to the android.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question