Display base64 image in web application

  • Thread starter Thread starter BC
  • Start date Start date
B

BC

Hello,

I have a resource file that contains an image that has been converted to
base64 data. Now what I need to do is glab the base64 data from the
resource file and display it in the browser as an image. I'm having
trouble on how to display it in the web browser as an image.


Cheers,

Benny
 
Hi Benny,

I had not much to do with HTTP in C#, but i can recomend to
use Convert.FromBase64String(...) to get image bytes.
Then you need to pass it by HTTP stream.

HTH
Marcin
 
Im able to get the base64 data and convert it back to image. but im
having trouble on how to display it. i can use response.binarywrite,
however the image will display, but not the rest of my controls. any
idea how?


cheers,

benny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top