I have an image object called logo and I have inserted an image inside of it. I want to press a save button and have that image stored in my sqlite database. I seem to be able to save text based items, but how do I do images. I have a field called logo in the database and it is of blob type.
This is the code I have so far.
Code: Select all
global gConnID
on mouseUp
# Get the values
put base64encode(img_logo) into tLogo64
--put field "fld_logoposition" into tLogoPosition
put field "fld_footer" into tFooter
put "UPDATE stationary SET "& \
"logo='" & tLogo64 &"'," & \
"footer='" & tFooter & "'" & \
"WHERE stationaryID=1" into tTheSQLQuery
revExecuteSQL gConnID, tTheSQLQuery
end mouseUp
Jalz