con.Open(); cmd = new SqlCommand("insert into picture(pic)" + "values(@pic)", con); cmd.CommandType = CommandType.Text; SqlParameter pic1 = new SqlParameter("@pic", SqlDbType.Image, imageSize.Length); pic1.Value = imageSize; cmd.Parameters.Add(pic1); con.close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)