问题代码如下:  
        private static ImageStruct InitImageWidthAndHeight(HttpPostedFile postFile)
        {
            int byteLenght = postFile.ContentLength;
            Byte[] TempBytes = new byte[byteLenght];            postFile.InputStream.Read(TempBytes, 0, byteLenght);            MemoryStream stream = new MemoryStream(TempBytes);
            ****Image img = Image.FromStream(stream);*****
            ImageStruct imgStruct;
            imgStruct.Height = img.Height;
            imgStruct.Width = img.Width;
            -----------------------
            return imgStruct;
        }
循环调用此方法,以实现上传多个图片,但只能上传一张,第二张时就会出错!****处报错"参数无效"
找半天后发现TempBytes数组是空的,里面元素值全为0,在---------处加代码:
"postFile.InputStream.Flush();postFile.InputStream.Close();"
后报错"内存不足",请高手不吝赐教!