|
@@ -593,10 +593,10 @@ namespace OASystem.API.Controllers
|
|
|
//string url = HttpRuntime.AppDomainAppPath.ToString();
|
|
|
//string tmpRootDir = System.Web.HttpContext.Current.Server.MapPath(System.Web.HttpContext.Current.Request.ApplicationPath.ToString()); //获取程序根目录
|
|
|
//string imagesurl2 = tmpRootDir + filename; //转换成绝对路径
|
|
|
- bitmap.Save(filePath, System.Drawing.Imaging.ImageFormat.Jpeg);//保存到服务器路径
|
|
|
+ //bitmap.Save(filePath, System.Drawing.Imaging.ImageFormat.Jpeg);//保存到服务器路径
|
|
|
//bitmap.Save(filePath + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp);
|
|
|
//bitmap.Save(filePath + ".gif", System.Drawing.Imaging.ImageFormat.Gif);
|
|
|
- //bitmap.Save(filePath + ".png", System.Drawing.Imaging.ImageFormat.Png);
|
|
|
+ bitmap.Save(filePath + ".png", System.Drawing.Imaging.ImageFormat.Png);
|
|
|
ms.Close();//关闭当前流,并释放所有与之关联的资源
|
|
|
bitmap.Dispose();
|
|
|
}
|