store photo to SQL database RRS feed

  • Question

  • I want to record images in the database but does not know how, here I have a class that I made, but when I want to primazem image in the database does not exist, how do I do ??
    protected void btnSave_Click(object sender, EventArgs e)
    Customers cust = new Customers();
    cust.Name = txtName.Text;
    cust.Surname = txtSurname.Text;
    cust.Adress = txtAdress.Text;
    cust.Tel = txtTel.Text;
    cust.Email = txtEmail.Text;
    cust.Photo = fuPhoto.FileBytes;    -  does't work like this

    Friday, August 5, 2011 1:27 PM