【发布时间】:2011-04-04 22:51:26
【问题描述】:
我在我的网站中使用 Image.FromStream 方法时遇到了困难。下面的代码在我的电脑上完美运行。但是当我将它上传到测试服务器时,它总是给我“参数无效”异常。
if (!afuImageFile.IsUploading && afuImageFile.HasFile)
{
System.Drawing.Image imgFile = System.Drawing.Image.FromStream(afuImageFile.FileContent);
}
afuImageFile 是 Ajax 工具包中的 AsynFileUploader 控件。 afuImageFile.FileContent 是 HttpInputStream。我想我需要为某个文件夹添加一些权限。谁能帮帮我?
【问题讨论】:
-
听起来与这个问题类似。 stackoverflow.com/questions/1614773/…
标签: c# asp.net system.drawing