I'm trying to display an image that has been returned from an external assembly, but am having no luck at all.
Essentially, I have a utility class that goes to a resource file and pulls out a JPG and returns it. I have set the value property of the image control on the report to hit this assembly, like so :
= Code.getLogo()
where the function Code.getLogo() actually interfaces with the utility class.
I have tried several variations of this code. I have returned the image as an Image object, a JPG, a TIFF and a BMP. I've also been adventurous and tried converting it to a base64 string before it gets to the report and then having the report convert it back to bytes before shoving it into the image value. Consistently I get this error :
The value expression used in image ‘logo’ returned a data type that is not valid.
A reply to a similar post on the www.sqlreportingservices.net site suggested that it's a Code Access Security issue, but I'm sure it's not, because when I dump my base64 string into a text field, it fills half the page.
What is this control expecting Any thoughts

image resource returned in code
compucv621
Your function has to return the image as byte array (i.e. byte[]). In addition, the image type has to be set to "Database", otherwise the Value property is not interpreted as the actual image data.
--Robert
Erik B.
Yes, I did indeed have it set to Embedded.
When I set to Database, I have a whole new set of errors, but they seem more straightforward. I'll fiddle with it for a while and see what I can come up with.
Got me over a big hurdle. Thanks.
Simon dotnet convert
Range_Finder
Thank ye very much for your help.
sniwas24x7