我无法更新2005年视觉工作室的档案(noimg100.gif)。
这是代码,
String fileNotFoundPath = context.Server.MapPath("~/common/images/noimg100.gif");
context.Response.ContentType = "image/gif";
Image notFoundImage = Image.FromFile(fileNotFoundPath);
notFoundImage.Save(context.Response.OutputStream, ImageFormat.Gif);
我做错什么了吗 还是我需要 处理最后的图像?
Edit: I have found the following link, where it says about not to use Image.FromFile the way I have used: http://support.microsoft.com/kb/309482