payam hayati

payam hayati

  • NA
  • 7
  • 3.2k

how to save image in sql table?

Aug 13 2014 1:59 AM
hi
it's my table in sql :


and form :





and Query :

protected void Button1_Click(object sender, EventArgs e)
{
 sqlserver sqls = new sqlserver(".", "University");
 sqls.update("insert into master (m_pcode , m_name , m_family , m_melicode , m_phone , m_mobi , m_brithday , m_r_id , m_ma_id , m_address) values('" + m_pcode.Text + "','" + m_name.Text + "','" + m_family.Text + "','" + m_melicode.Text + "','" + m_phone.Text + "','" + m_mobil.Text + "','" + m_brithday.Text + "','" + m_course.Text + "' , '" + m_certificate.Text + "' , '" + m_address.Text + "')");
}

Everything works properly, query the data just don't know what to write for save image and where to do it?

Answers (2)