HttpPostedFile file = this.Request.Files["上傳控件Name"];
Stream stream = file.InputStream;
System.Drawing.Image image = System.Drawing.Image.FromStream(stream);
int iWidth=Image.Width
int iHeight=Image.Height
文章轉載自:ASP.NET中如何獲取上傳圖片的寬和高 http://www.studyofnet.com/news/1283.html