Using expression to set an image
Posted: Tue Nov 27, 2018 11:20 am
Hello all,
So i have an image encoded as base64 string on my json datasource. I am trying to make an image expression in order to set the image component to the one passed on the json or to a default one if the json property is empty string.
{(Details.LogoImage != "") ? Details.LogoImage : imagenotonfile}.
Where imagenotonfile is an image variable. It is not working, so obviously I am doing something wrong. What is the proper way of setting this expression?
So i have an image encoded as base64 string on my json datasource. I am trying to make an image expression in order to set the image component to the one passed on the json or to a default one if the json property is empty string.
{(Details.LogoImage != "") ? Details.LogoImage : imagenotonfile}.
Where imagenotonfile is an image variable. It is not working, so obviously I am doing something wrong. What is the proper way of setting this expression?