₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,276 members, 8,425,770 topics. Date: Saturday, 13 June 2026 at 04:20 AM

Toggle theme

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

Nairaland ForumScience/TechnologyProgrammingAndroid, How To Display Image In Image View From Mysql (2218 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 PdfExample To Set Border Radius Of An Image In React NativePhp: How To Display A Message To A Specific User ID Or User Name234

Full Stack Developer NeededQuadratic Equation Solver for AndroidWhat's Wrong With MS Access 2016?