上传BMP转JPG
System.Drawing.Image image = System.Drawing.Image.FromStream(imgScreenShoot.PostedFile.InputStream);
//Bitmap image = new Bitmap(Server.MapPath("~") + "\Uploads\" + fileName+"."+FileExtensionName);
image.Save(Server.MapPath("~") + "\Uploads\" + fileName + ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg); //注意避免重名
补充:asp.net教程,.Net开发