hi,
i need to save a contact photo into a Blob field of a sqlite db.
this code don't work, because i think photo field has to be converted:
any suggestions?
thanks
i need to save a contact photo into a Blob field of a sqlite db.
this code don't work, because i think photo field has to be converted:
B4X:
Dim photo As Bitmap
...
dim c as Contact
...
photo = c.GetPhoto
...
sqlcmd = "UP DATE Contacts "
sqlcmd = sqlcmd & " SET image = " & photo '<--- image is a BLOB field in DB
sqlcmd = sqlcmd & " WHERE LocalContactID = " & ContactID
...
SQL1.ExecNonQuery(sqlcmd)
...
thanks