参数缺失异常 - 将Array转换为MemoryStream

时间:2013-07-08 16:48:38

标签: c#

MemoryStream ms = new MemoryStream(fileData.FileData1.ToArray());
Image showImage = null;

using (System.Drawing.Image returnImage = System.Drawing.Image.FromStream(ms))
{
    returnImage.RotateFlip(RotateFlipType.Rotate270FlipNone);
    MemoryStream msSave = new MemoryStream();
    showImage = FixedSize(returnImage, returnImage.Width, returnImage.Height);
    int hei = showImage.Height;
    int wid = showImage.Width;
    showImage.Save(msSave, imageFormat);
    context.Response.BinaryWrite(msSave.ToArray());
}

直到很久以前一切正常:/

enter image description here

0 个答案:

没有答案