Hi,
The update statement does not seem to work for updating (replacing in this case) a picture that's already sitting in the DB. The insert statement works just fine though. Below is the code I use. Thanks in advance.
The update statement does not seem to work for updating (replacing in this case) a picture that's already sitting in the DB. The insert statement works just fine though. Below is the code I use. Thanks in advance.
B4X:
Main.aSQL.ExecNonQuery("UPDATE product SET Name = '" & txtEDITName.Text & "' , Price = " & txtEDITprice.Text & " , Size = " & txtEDITSize.Text & ", Type = '" & txtEDITType.Text & " , Picture = " & Array As Object(Buff) & " WHERE ProductID = " & theProdID)