Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个专栏,我希望图像出来,但在运行时只出现名称
MIMEType:image/jpeg 来源:数据库值:=Fields!Image.Value
我看到了这段代码,但 idk 要把它:
内存流毫秒 = 新的内存流(); Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png); 返回 ms.ToArray();
内存流毫秒 = 新的内存流();
Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
返回 ms.ToArray();
请帮忙
做类似的事情
Bitmap _img = new Bitmap(10, 10); public byte[] MyPicture { get { // Generate bitmap // Convert to stream MemoryStream ms = new MemoryStream(); __img.Save(ms, System.Drawing.Imaging.ImageFormat.Png); return ms.ToArray(); } }