Hope it will be helpful for you:SqlCommand comm=new SqlCommand("Insert into table1 (Name,parent_id) values (@name,@image)",sqlConnection1);
SqlParameter param0=new SqlParameter("@name",SqlDbType.Char);
SqlParameter param1=new SqlParameter("@parentid",SqlDbType.Image);
param0.Value="abc";
param1.Value=byte[] that you want to store;
comm.Parameters.Add(param0);
comm.Parameters.Add(param1);
try
{
if (sqlConnection1.State==ConnectionState.Closed)
sqlConnection1.Open();
comm.ExecuteNonQuery();
}
catch (Exception E)
{
MessageBox.Show(E.Message);
}