C#图片转成流

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

 

posted @ 2021-11-12 16:02  212的s  阅读(307)  评论(0编辑  收藏  举报