Click here to Skip to main content
15,913,233 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone I want to show image on report on rdlc which stored in database in binary format. How can i show the image on report of rdlc.


In Select the image source, select Database.
In Use this Field, select the field that contains the image.
In Use this MIME type, select the MIME type of the image.
Click OK.

above thing is not worked for me
Posted
Updated 30-Sep-15 1:27am
v2

hmmm do you have the option to change the type you store in the database, you can change by using base64 instead of binary which i find easier to use in rdlc, if you do decide to use base 64 try adding

=Convert.FromBase64String(Convert.ToString(Fields!Barcode.Value).Replace("data:image/jpeg;base64,","").Replace("data:image/png;base64,",""))


in the image box properties, under general, "Use this field" expression.

Sorry if my English is really bad.
 
Share this answer
 
Comments
adminehealthcare 4-Dec-20 23:38pm    
Thank you so much. you just saved my day.
AmaniCodes 21-Jan-21 5:49am    
It's amazing ..its helped me and solved my issue
I saved the QR as string base64 and just applied this its working now
thankyou very much
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900