Click here to Skip to main content
15,906,106 members

Comments by Ism Oss (Top 5 by date)

Ism Oss 14-Mar-22 20:30pm View    
thanks this worked with me
Ism Oss 13-Mar-22 20:13pm View    
still have -> Additional information: Syntax error (missing operator) in query expression 'System.Byte[]'.

my code->
using (OleDbCommand cmdimage = new OleDbCommand("update PatientVisit set Barcode = "+ Exportimage+" where DNo =" + Convert.ToInt32(DNo.Text) + " and VDate like '" + VDate.Text + "'",helper.con))
{
cmdimage.Parameters.Add("Barcode",OleDbType.VarBinary);
cmdimage.Parameters["Barcode"].Value = Exportimage;

cmdimage.ExecuteNonQuery();

}

also tried AddWithValue
Ism Oss 13-Mar-22 15:53pm View    
How we can do this?
Ism Oss 13-Mar-22 15:19pm View    
byte[] image=imagetobyte(picturebox1.Image);

String sqltext="update [table] set [column]="+image+" where id='"+Textbox1.Text+"'";

Note:imagetobyte() is own method
Ism Oss 10-Oct-15 20:38pm View    
How to represent a form control ,e.g text box , As a record in mdb database table for updating or adding or deleting while using odbc in c++\clr application