When using SetData and GetData functions to pass data from report body to report header/footer we can also pass the images.
For example: when creating a multiple document for different companies with different logos. Find the below code to achieve the scenario.
1. Create the following function in Report Properties:
Public Function ConvertPicture(Value)
If IsNothing(Value) Then
Return ""
End If
Return Cstr(Convert.ToBase64String(Value))
End Function
2.In SetData add the newly created Function with the Field reference to BLOB Field
Code.ConvertPicture(Fields!CheckSignatureTCheckSignature.Value) + Chr(177)
3. Use GetData in Image Properties to reference to the respective Field of the SetData Function.