photograph updation
updating photograph
hi friends
i want to update photograph which is in ms-access table
i tried something like
Dim imageByte As Byte()
Dim fs As New FileStream(OpenFileDialog1.FileName, FileMode.Open)
Dim reader As New BinaryReader(fs)
imageByte = reader.ReadBytes(Convert.ToInt32(fs.Length))
Dim cmd As New OleDbCommand("UPDATE Employee SET photograph = " & imageByte, cnAscom)
it gives syntax error saying that
" Operator '&' is not defined for types 'String' and '1-dimensional array of Byte' "
how can i solve this problem
thanks for ur valuable suggestion
|