只是源代码:
down_photo = (byte[])dv1[0]["photo"];
MemoryStream stream = new MemoryStream(down_photo, true);
System.Drawing.Image image = System.Drawing.Image.FromStream(stream);
string temp_path = "C:\\Inetpub\\wwwroot\\TSectionWebUI\\download\\photo1";
image.Save(temp_path);
down_photo = (byte[])dv1[0]["photo"];
MemoryStream stream = new MemoryStream(down_photo, true);
System.Drawing.Image image = System.Drawing.Image.FromStream(stream);
string temp_path = "C:\\Inetpub\\wwwroot\\TSectionWebUI\\download\\photo1";
image.Save(temp_path);
这里需要赋予ASPNET用户“写”的权限.
我按照你的说法检查了一下确实没有写入权限。但是我我改了以后为什么还是不行呢?
是不是要重启啊?