₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,345,837 members, 8,519,754 topics. Date: Monday, 16 November 2026 at 06:00 PM

Toggle theme

Android, How To Display Image In Image View From Mysql - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Android, How To Display Image In Image View From Mysql (2251 Views)

1 Reply (Go Down)

Android, How To Display Image In Image View From Mysql by msal2016(op): 3:13pm On May 31, 2017
How to fetch image using image path from MySQL database into android image view both php and the script
Re: Android, How To Display Image In Image View From Mysql by nollyj: 6:54pm On May 31, 2017
msal2016:
How to fetch image using image path from MySQL database into android image view both php and the script
You can use Glide Library to acheive it. You need to add this library in your build.gradle file in your android project

This is a sample code.

ImageView imageView = (ImageView)findViewById(R.id.image_view);

String serverImagePath = path_to_your_image_on_server;

Glide.with(context).load(serverImagePath).diskCacheStrategy(DiskCacheStrategy.ALL).fitCenter().override(300, 300).into(imageView);
Re: Android, How To Display Image In Image View From Mysql by msal2016(op): 8:02am On Jun 01, 2017
Thanks but what am trying to do is to use the unique Id from the database on the android page textbox to display individual personal biodata and biometric (image only) but i was able to display the biodata:f/name,S/name/DateofBirth/Age etc except the image that is not coming up
Re: Android, How To Display Image In Image View From Mysql by Linestech: 8:17am On Jun 01, 2017
msal2016:
Thanks but what am trying to do is to use the unique Id from the database on the android page textbox to display individual personal biodata and biometric (image only) but i was able to display the biodata:f/name,S/name/DateofBirth/Age etc except the image that is not coming up
Where is the image saved?
Re: Android, How To Display Image In Image View From Mysql by msal2016(op): 7:59am On Jun 02, 2017
the image was saved in a folder in C:/ directive because am using local server on my system.
1 Reply

Display Image Store In Database On Pdf • Example To Set Border Radius Of An Image In React Native • Php: How To Display A Message To A Specific User ID Or User Name • 2 • 3 • 4

Full Stack Developer Needed • How To Add On Scroll Animations To Your Website Using Animate.css And Wow.js • Building My First Ios App. I Will Upload Videos Of My Progress Daily