I have image into sql datatable and read it and display successfully into win form. But I can't insert that picture (which I get from database) from datatable in vb dataset. Data type for image in datatable is byte()... I think problem is in this line:
adoCommandInsertElement.Parameters(4).Value = dataset.UgovorUgovorElement_Select.Rows(i).Item(5)
adoCommandInsertElement.Parameters(4).Value
is image
and Me.dataset.UgovorUgovorElement_Select.Rows(i).Item(5)
is byte()
The error is: failed to convert parameter value from a byte[] to a decimal. system.invalidcastexception , object must implement IConvertible