删除文件,而我在做下面,我不能更新在Visual Studio 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);
我是否做错了什么或者是否需要在最后处理图像?
编辑: 我发现下面的链接,它说,有关不使用Image.FromFile我用的方式:当您打开从文件的图像 http://support.microsoft.com/kb/309482
您是否收到错误消息? – Default
@默认:共享违规 – Hoque
更新?你正在写映像来响应下载而不更新服务器端,对吗? –