这个问题应该比较普通,目前我采用的是定义一个image二进制字段,代码如下:
FileStream fs=new FileStream(str,FileMode.Open,FileAccess.Read);
BinaryReader br=new BinaryReader(fs);
byte[] image=br.ReadBytes((int)fs.Length);
theRow["Attachment"]=image;
FileStream fs=new FileStream(str,FileMode.Open,FileAccess.Read);
BinaryReader br=new BinaryReader(fs);
byte[] image=br.ReadBytes((int)fs.Length);
theRow["Attachment"]=image;
http://www.csdn.net/Develop/Read_Article.asp?Id=20311