I have uploaded few images on my server which will be downloaded to my android application by passing a url
. I have written a php
file which displays the image. I pass the URL
to my android application like this :
'http://myURL/getImage.php?image=logo.png'.
When I copy paste the URL
directly in browser the image is displayed correctly.
However the image file is not getting downloaded on my android application. I know that android code is correct because when I am giving any other random image URL
the image is downloading correctly. Do I have to give something else in my php file to make the image 'downloadable'.
Image.php
<?php
echo '<img src="Images/'.$_REQUEST['image'].'"/><br />';
?>