I have an android application which stores image in WAMP (i.e C:\wamp\www*projectName**Image folder*) at the time of registration. i am using WAMP as local server, Retrofit for network activities and glide for image processing. Image is uploading successfully and image path is being stored in DATABASE. Now when i retrieve the information from database, i want to display that image in imageView using glide but i don't understand how i do that. In JSON response i am getting the path of the image.
==================================================================
My Php Script for uploading photo
$image = $_POST["uPhoto"];
$time = date("d-m-Y")."-".time();
$image_name = $username."_".$time;
$image_path = "user_profile_images/$image_name.jpg";
if (mysqli_query($myCon,$sql))
{
file_put_contents($image_path,base64_decode($image));
$status = "ok";
echo json_encode(array("response"=>$status));
}
==================================================================
JSON Response
"Photo Path":"user_profile_images\/roots123_29-08-2018-1535553004.jpg"
In android side i am trying
Glide.with(getApplicationContext()).load(response.body().getImage()).into(imgProfile);
Can someone please give any solution