OpenFileDialog op = newOpenFileDialog();
op.ShowDialog();
pictureEdit1.Image = newBitmap(op.FileName);
اینم کد تابعی که عکس رو در بانک درج می کنه
publicstaticvoid select_insert(string y)
{
SqlConnection con;
SqlDataAdapter da;
SqlCommand sc;
con = newSqlConnection("Data Source=(Local);Initial Catalog=saipa;Integrated Security=True");
da = newSqlDataAdapter();
sc = newSqlCommand();
da.SelectCommand = newSqlCommand();
da.SelectCommand.Connection = con;
sc.Connection = con;
DataTable temp = newDataTable();
da.SelectCommand.CommandText = y;
con.Open();
da.Fill(temp);
con.Close();
}