For an image on a report I am pulling a byte array from a custom assembly. Behind the scenes, the custom assembly makes a database call and pulls the image from a varbinary(max) column.
The image displays fine, but the report generates two warnings that "The Value expression used in image X returned a data type that is not valid" and "The value of the ImageData property for the image is X, which is not a valid ImageData."
My question is what data type can I cast the byte array to in order to get rid of that warning message? Thank you.