try
{
MemoryStream WebStream1 = new MemoryStream();
bitmap.Save(WebStream1, System.Drawing.Imaging.ImageFormat.Jpeg);//这里执行保存时出错
byte[] buffur = new byte[WebStream1.Length];
WebStream1.Read(buffur, 0, Convert.ToInt32(WebStream1.Length));
FtpClint ftpUpDown = new FtpClint("*.*.11.*:3305", "*", "*");
ftpUpDown.Upload(buffur, newfileNames, "images/" + thumbnailPath);
//以jpg格式保存缩略图
}
catch (Exception err)
{
throw new Exception(err.Message);
}
finally
{
sourceImage.Dispose();
bitmap.Dispose();
g.Dispose();
}
“WebStream1.ReadTimeout”引发了“System.InvalidOperationException”类型的异常
这个怎么解决啊请高手帮忙
汪汪一只猫