Posted 2 March 2021, 7:19 am EST
Hello!
I am struggling to bind a byte of an image to the Image control in an RDL Report. The below is what is in the .rdlx:
<Image Name="imgSignature">
<Height>0.625in</Height>
<Left>1.833333in</Left>
<MIMEType>image/jpeg</MIMEType>
<Sizing>Fit</Sizing>
<Source>External</Source>
<Style />
<Value>=Fields!SignatureField.Value</Value>
<Width>3.7917in</Width>
<ZIndex>1</ZIndex>
</Image>
The rest of the text fields bind fine and I have the appropriate dataset created.
My C# code is where this gets fuzzy. I use an OnLocateDataSource event to bind the data with the values I want populated in the report. However, i’m unsure what my SignatureField field type should be. Should I be converting my byte to a base64 string? An Image? I swear I’ve tried every possible combination of things and never see the image populated.
This is a user input image so it will not be embedded nor can I point to a specific location for it.