显示图像窗口应用程序 [英] Display Image windows application
本文介绍了显示图像窗口应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的Windows应用程序中显示图像(c#)。图像存储在我的网络服务器中说
http://www.sample.com/Images/Test.jpg
。
以下是我的代码
I want to display images in my windows application(c#). Image is stored in my web-server say
http://www.sample.com/Images/Test.jpg
.
Below is my code
Image.FromStream(System.Net.HttpWebRequest.Create(url).GetResponse().GetResponseStream());
但它显示错误。远程服务器返回错误(403)禁止。
是否需要传递任何凭据?
站点在IIS 7中托管
But it shows an error .The remote server return an error(403) Forbidden.
Is it need to pass any credentials?
Site hosted in IIS 7
推荐答案
参考此链接
403禁止错误
这篇关于显示图像窗口应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文