Report loading for Base-64 encoded JPG image bytes

I have a problem to load Base-64 encoded JPG image bytes to rdlc PDF report. It failed to be loaded into the image holder on the report. The old jpg image data in the same table can be loaded to the image holder, which means report code is fine. I debugged it, the binary data was retrieved and assigned to the datasourse of the report. Is there anything special I need to take for loading Base-64 encoded JPG image bytes ? Please help. Thanks.

LVL 1
minglelinchAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jorge PaulinoIT Pro/DeveloperCommented:
What have you defined for the Value property? You should use ="file//" & Fields!image.Value
0
minglelinchAuthor Commented:
Where to assign this value? In the Data region of the property for the image holder item in rdlc?
0
Jorge PaulinoIT Pro/DeveloperCommented:
You want to show an image in the report, right? You must add an ReportViewer1.LocalReport.EnableExternalImages = true; and set the value property for the image control ="file//" & Fields!image.Value
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

minglelinchAuthor Commented:
So I should set ReportViewer1.LocalReport.EnableExternalImages = true in C# code, right?

I did not see the place to set the value of Image control. In the Image Properties, I see three tabs General, Visibilit and Navigation. There's a Data region on the General tab. Should I assign ="file//" & Fields!image.Value here?

Thanks.
0
Jorge PaulinoIT Pro/DeveloperCommented:
Check this in my blog (click on the english flag for translation) http://vbtuga.blogspot.com/2009/06/vbnet-microsoft-reports-mostrando.html 
0
minglelinchAuthor Commented:
Thanks for the comments. I do have those property setup. My binary image data is from database, so I set database as Source, and I assigned =Fields!imageByteArray.Value in the Value property of the image control.

The image does not display in the report, but the old images display. I'm wondering why?
0
Jorge PaulinoIT Pro/DeveloperCommented:
You need to set for the Value property:

="File//" & Fields!imageByteArray.Value

and not only

=Fields!imageByteArray.Value
0
minglelinchAuthor Commented:
I found my problem was caused by incorrectly binary data saving. I changed the way for saving with the help of the following links, and my problem was resolved.

http://www.codeproject.com/KB/aspnet/ImageInDatabase.aspx 
http://www.dailycoding.com/Posts/convert_image_to_base64_string_and_base64_string_to_image.aspx

Thanks.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom KnowltonWeb developerCommented:
I've requested that this question be deleted for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
minglelinchAuthor Commented:
Please keep all the cooment visible to me so that I can use them for hte future reference. Thanks.
0
minglelinchAuthor Commented:
I resolved it. THanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.