我有以下 aspx 代码
<asp:Image ID="pbScannedImage" runat="server" />
而我的 C# 代码背后的代码是
System.Drawing.Image image;
image = System.Drawing.Image.FromStream(new MemoryStream(dDSImageViewerDTO.ROI));
pbScannedImage.Visible = true;
pbScannedImage.ImageUrl = "";
// This is available but I don't want to write file to the disk and
// assign directly to the image box something like
pbScannedImage.Image = image;
//i know this is not possible so any other work around would be great help
所以基本上我想将图像分配给图像控件而不将其写入其他任何地方。是否有可能,如果没有,那么是否有任何可用的解决方法?