Cannot get imagedata from database field into image
Posted: Sun Dec 18, 2016 8:46 pm
I cannot seem to get imagedata from database field into image.
The image just does not show anything.
I saved the data of the image as
To make sure I get the data undamaged I used revDatabaseColumnNamed but stil no succes ?
Any idea's on what i am doing wrong?
Regards,
Paul
The image just does not show anything.
I saved the data of the image as
Code: Select all
put base64encode(image "GroupLogo") into tBase64ImgData
Code: Select all
put "SELECT * FROM "& TableName&" WHERE GroupID =" & tGroupID & ";" into tSQLString
put revQueryDatabase(DatabaseID, tSQLString) into tRecordSet
get revDatabaseColumnNamed(tRecordSet, "GroupID", tGroupID)
get revDatabaseColumnNamed(tRecordSet, "Logo", tLogoData)
get revDatabaseColumnNamed(tRecordSet, "Name", tGroupName)
get revDatabaseColumnNamed(tRecordSet, "Status", tGroupStatus)
Put tGroupID into theDataA[tGroupID]["GroupID"]
put tGroupName into theDataA[tGroupID]["GroupName"]
put tGroupStatus into theDataA[tGroupID]["GroupStatus"]
breakpoint
-- Put tLogoData into image "TestImage" of this card
put base64decode(tLogoData) into tBinaryImageData
--set the text of image "TestImage" of this card to tBinaryImageData
put tBinaryImageData into image "TestImage" of this card
Regards,
Paul