非常简单,4行代码而已:
Response.ContentType = "image/jpg";
Response.AppendHeader("Content-Disposition", "attachment; filename=FileUpLoad.jpg");
Response.TransmitFile(Server.MapPath("~/img/FileUpLoad.jpg"));
Response.End();