在WinForm中,使C#语言向SQL Server(2005)存储图片并且将图片从数据库中读取出来,显示在窗体中
步骤:
1.首先,在SQL Server中创建一个表,用来存储图片;
示例代码:
use tempdb
go
if exists (select * from sysobjects where name = 'Images')
drop table Images
go
create table Images
(
BLODID int identity not null,
BLOBData image not null
)