Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,218,739 members, 8,039,093 topics. Date: Saturday, 28 December 2024 at 03:33 PM

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 (2114 Views)

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)

(1) (Reply) (Go Down)

Android, How To Display Image In Image View From Mysql by msal2016: 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);

1 Like

Re: Android, How To Display Image In Image View From Mysql by msal2016: 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: 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)

COMPUTER PROGRAMMING AND WEBSITE DESIGN / A Python Program To Check The Risk Of Corona Virus. / How Hushpuppi Aided North Korea Hackers

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.