你需要先获得图片的byte流,然后转换成Image对象,在进行显示。例如: byte[] bData = ...;//Set its value from DB MemoryStream ms = new MemoryStream( bData, true ); ms.Read( bData, 0, bData.Length ); // Create a bitmap from the stream Bitmap bmp = new Bitmap(stream); ms.Close();//Show image using "bmp" object
byte[] bData = ...;//Set its value from DB
MemoryStream ms = new MemoryStream( bData, true );
ms.Read( bData, 0, bData.Length );
// Create a bitmap from the stream
Bitmap bmp = new Bitmap(stream);
ms.Close();//Show image using "bmp" object