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.
画像を表示したい列がありますが、実行時に名前のみが表示されます
MIME タイプ: image/jpeg ソース: データベース 値: =Fields!Image.Value
私はこのコードを見ましたが、idkはそれを置くことでした:
MemoryStream ms = new MemoryStream(); Image.Save(ミリ秒、System.Drawing.Imaging.ImageFormat.Png); ms.ToArray(); を返します。
MemoryStream ms = new MemoryStream();
Image.Save(ミリ秒、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(); } }