(1)控制台应用程序下演示插入图片 代码如下:public void InsertIMG(){//将需要存储的图片读取为数据流FileStream fs = new FileStream(”E:\c.jpg”, FileMode.Open,FileAccess.Read);Byte[] btye2 = new byte[fs.Length];fs.Read(btye2 , 0, Convert.ToInt32(fs.Length));fs.Close();
using (SqlConnectio