C# Download Excel contains image. Binary code of image

Last Reply 5 days ago By AnandM

Posted 5 days ago


I want to download excel from my web application which also contains image. 

Application is working fine. But image is only visibble to my system as we provided image src not the binary code like  in below ref.



I want to add image in binary code so that image should be visible to any machine.

You are viewing reply posted by: AnandM 5 days ago.
Posted 5 days ago

Hi Amit

I think converting binary data or byte array into image and exporting them to excel is not possible because excel doesnt supports byte or binary data so you can do one thing converting image to binary or byte array and export them to pdf.

for exporting binary data as image to pdf refer below link

iTextSharp: How to add Binary image (Byte array or Base64 string) to PDF document using C# in ASP.Net

I agree, here is the link: http://e-iceblue.com/free-api