小编Leo*_*n.S的帖子

System.Drawing.Image.FromStream()方法中的"参数无效"异常

我在网站上使用Image.FromStream方法很难.以下代码在我的计算机上运行良好.但是当我将它上传到测试服务器时,它总是给我"参数无效"异常.

if (!afuImageFile.IsUploading && afuImageFile.HasFile)
{
    System.Drawing.Image imgFile = System.Drawing.Image.FromStream(afuImageFile.FileContent);
}
Run Code Online (Sandbox Code Playgroud)

afuImageFileAsynFileUploaderAjax工具包中的一个控件.afuImageFile.FileContent是一个HttpInputStream.我想我需要为某个文件夹添加一些权限.谁能帮我?

c# asp.net system.drawing

6
推荐指数
1
解决办法
8789
查看次数

标签 统计

asp.net ×1

c# ×1

system.drawing ×1