Last post Dec 27, 2018 07:55 AM by Yuki Tao
Dec 26, 2018 08:03 AM|abdulraqeeb93|LINK
I am facing problem in loading image from another web server folder. Can you please help me to find
How to open an image file from another web server folder.
Dec 26, 2018 08:46 AM|oned_gk|LINK
client site simply use url address
server site use httpclient
Dec 26, 2018 12:38 PM|PatriceSc|LINK
If you tried something that fails and need further help (you are using an http client already ?), it could be easier to start from the actual problem you have as it could be tons of things (from not using the correct approach to having an authentication
or firewall issue).
Dec 27, 2018 07:55 AM|Yuki Tao|LINK
string remoteImageUrl = "http://xxx.xxx.com:1147/images/test.jpg";
WebClient webClient = new WebClient();
webClient.DownloadFile(remoteImageUrl, Server.MapPath("~/images/") + "2.jpg");
<img src="@Url.Content("~/images/2.jpg")" />
I think you could use WebClient to get url of image in another web server and download in local.
And then show the image in local.