【发布时间】:2013-03-11 01:36:20
【问题描述】:
如何让我的代码获取图像“_filename.JPG”而不仅仅是“_filename.jpg”?
string picUrl = "http://MyServer/" + _filename + ".jpg";
Image webImage = global::MyProject.Properties.Resources.ImageNotFound1;
try
{
WebRequest requestPic = WebRequest.Create(picUrl);
WebResponse responsePic = requestPic.GetResponse();
webImage = Image.FromStream(responsePic.GetResponseStream());
}
【问题讨论】:
标签: c# winforms ubuntu-12.04 webrequest case-sensitive