I have found the solution to my question. Thank you to those who have answered . . .
MemoryStream ms = new MemoryStream();
pictureBox1.Image.Save(ms, ImageFormat.Png);
byte[] pic_arr = new byte[ms.Length];
ms.Position = 0;
ms.Read(pic_arr, 0, pic_arr.Length);
conn.Open();
MySqlCommand cmd = new MySqlCommand("insert into images(image, name)values(@img,@imgName)", conn);
cmd.Parameters.AddWithValue("@imgName", txtName.Text);
cmd.Parameters.AddWithValue("@img", pic_arr);
int n = cmd.ExecuteNonQuery();
conn.Close();
MessageBox.Show("COmplete");