mainrotor
asked on
I need help embedding an image as HTML in my vb.net application
Hi,
I need to somehow retrieve and image and pass it embedded as HTML.
Currently my sql database saves the data into field called HTMLInfo and stores the image in that field like so:
<p><img width="712" height="616" src="/inlineimages/WorkOrd er/238925/ 0.png" /></p>
I need to be able to somehow retrieve that image and pass it to my application as embedded within HTLM like so:
<br /><span><img src="data:image/png;base64 ,iVBORw0KG goAAAANSUh EUgAAAQQAA ADaCAYAAAB A ...
How can I do this?
Thanks in advance,
mrotor
I need to somehow retrieve and image and pass it embedded as HTML.
Currently my sql database saves the data into field called HTMLInfo and stores the image in that field like so:
<p><img width="712" height="616" src="/inlineimages/WorkOrd
I need to be able to somehow retrieve that image and pass it to my application as embedded within HTLM like so:
<br /><span><img src="data:image/png;base64
How can I do this?
Thanks in advance,
mrotor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Quite a lot of work involved here.. you have to decode the .png into a byte array then encode in base64. is this a one of.. or could the images be different i.e.jpg, tiff, bmp ?
ASKER