String clid = this.dataGridView3.CurrentRow.Cells["clid"].Value.ToString();
String cllx = this.dataGridView3.CurrentRow.Cells["cllx"].Value.ToString();
SqlCommand cmd = new SqlCommand("select climg from lab_fwgl_zmcl where clid='" + clid + "'", alluse.Class1.conn1);
FileStream fs;
BinaryWriter bw;
//设定允许读取到缓冲区的最大长度
int buffersize = 100;
//要将字节流读入的缓冲区
byte[] outbyte = new byte[buffersize];
//用于记录已经读取的字节数
long reval;
//字段中的索引,从这里开始读取操作
long startIndex;
//FileStream对象将封装的文件的相对路径或绝对路径
//string filePath = Application.StartupPath + "//temp//证明资料" + zlid + zlid;// @"C:/wordData.doc";
SaveFileDialog sfd
图片下载从SQLServer数据库
最新推荐文章于 2024-01-25 10:37:30 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)