上传图像文件时GDI +异常中发生一般错误

时间:2015-10-25 15:22:34

标签: c# image exception gdi+

关于此,我已经在stackoverflow上给出了一些答案,但我无法弄清楚我处理的部分太快了:

A generic error occurred in GDI+, JPEG Image to MemoryStream

Image.Save(..) throws a GDI+ exception because the memory stream is closed

此行引发异常:

image.Save(path, imageCodecInfo, encoderParameters);

0 个答案:

没有答案