Hello.
I have a valid base64 image in database, and I need to use this image as logo in my reports. I tried to use the base64 module to decode the file in bytearray, and then stored the value in a dataset. But I can’t see the image, and also in my preview xml, it looks like that the image has not been parsed. I also tried to use the raw base64 string but nothing. Here is my code:
import base64
b64 = data['getAppLogo'].getCoreResults().getValueAt(0, 0) #get b64 string
byteArray = base64.b64decode(b64)
headers =('b64','blob')
values =[]
values.append([b64,byteArray])
data['dsAppLogo'] = system.dataset.toDataSet(headers,values)
getAppLogo is a valid named query that fetches the base64 image value. The base64 image is valid for sure, tested and tested again
In the key property of Image I tried to set :dsAppLogo.blob, and tried also with dsApplogo.b64, but the image does not shows up and I get no errors. Please help me