FileStream Path = new FileStream(图片路径, FileMode.Open);
byte[] imagebytes = new byte[Path.Length];
BinaryReader pic = new BinaryReader(Path);
imagebytes = pic.ReadBytes(Convert.ToInt32(Path.Length));
//打开数据库
SqlConnection con = new SqlConnection(@"Server=数据库服务器;Database=数据库;uid=用户名;pwd=用户密码;");
con.Open();
SqlCommand com = new SqlCommand("Insert into 表名(字段名)values(@ImageList) where 条件", con);
com.Parameters.Add("ImageList", SqlDbType.Image);
com.Parameters["ImageList"].Value = imagebytes;
com.ExecuteNonQuery();
con.Close();
写的可能不规范。你再修改一下就ok了。。。