导出到文本
//查询结果是一个byte[]
byte[] bArr = (byte[])(oDs.Tables[0].Rows[0][0]);
FileStream fs = new FileStream("c:\\a.txt", FileMode.Create);
fs.Write(bArr , 0 , bArr.Length);
fs.Close;
导入到数据库
FileStream fs = new FileStream("c:\\a.txt", FileMode.Open);
int nRead = 0;
byte[] bData = new byte[fs.Length];
fs.Read(bData , 0 , bData.Length);
fs.Close();
最后把这个byte[] insert 到数据库应该会吧有兴趣可以到 QQ群:7862454 看看