hi
you should define a field varbinary(MAX) in database
then use this code
FileStream file = new FileStream(openFileDialog1.FileName, FileMode.Open, FileAccess.Read);
BinaryReader str1 = new BinaryReader(file);
byte[] bit = str1.ReadBytes(Convert.ToInt32( file.Length));
SqlConnection connection = new SqlConnection("server=(local);database=test;integrated security=true");
connection.Open();
SqlCommand command = new SqlCommand();
command.Connection = connection;
command.CommandType = CommandType.Text;
command.Parameters.AddWithValue("@Photo",bit);
command.CommandText = "INSERT INTO image1(pic) VALUES (@Photo)";
command.ExecuteNonQuery();
connection.Close();