How can I retrieve an Image from MySql database using volley? I saved my images in a file in the directory and saved the url in the database.
Asked
Active
Viewed 441 times
0
-
Have you tried Volley's ImageRequest? – FerDensetsu Oct 17 '17 at 21:41
-
I made a String request and get the url of the image from the database and tried to display it using picasso but sadly it did'nt work. Picasso.with(getApplicationContext()) .load("http://10.0.2.2/Shop&Go/image/222.jpg") .into(propic); – Ahmed Imam Oct 20 '17 at 03:26
1 Answers
0
You can convert the image file into base64 string while fetching and decode it into bitmap image.

digiwizkid
- 791
- 2
- 14
- 28
-
I made a String request and get the url of the image from the database and tried to display it using picasso but sadly it did'nt work. Picasso.with(getApplicationContext()) .load("10.0.2.2/Shop&Go/image/222.jpg") .into(propic); – Ahmed Imam Oct 20 '17 at 03:31
-
Is that url public/ accessible from the web? Possibly not, save the images in your web directory and check. – digiwizkid Oct 20 '17 at 06:02
-
Is your problem solved? If yes please share the solution for others. – digiwizkid Oct 30 '17 at 15:52