图片转成流 Bitmap b = new Bitmap(Server.MapPath(ppath)); Stream ms = new MemoryStream(); b.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); 流转成图片 MemoryStream ms = new MemoryStream(Bytes); return Bitmap.FromStream(ms,true); 字节转图片 /// <summary> /// 字节数组…
Bitmap b = new Bitmap(Server.MapPath(ppath)); Stream ms = new MemoryStream(); b.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); 原文: https://www.cnblogs.com/vaevvaev/p/7198900.html…