image resource returned in code
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 thevalue property of the image control on the report to hit this assembly, like so :
= Code.getLogo()
where the functionCode.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 thewww.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?

