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
 
Back
Top