下面是我上传和图像并将其保存以供稍后在 GridView 中显示的代码,
如果图像太大,如何在保存之前将图像调整为小尺寸?
if (this.fuUpload.HasFile == true)
{
string path = Server.MapPath(@"~\images");
string filename = this.fuUpload.FileName;
this.fuUpload.SaveAs(path + @"\" + filename);
this.image.ImageUrl = @"\images\" + filename;
}