I have the following code that is hard coded
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUh .... " >
Through asp.net how do I assign the value of src as I need to pull the value from the db and assign it a value vs. the hard coded way that I currently have it as. I am using win form.
Note that src has a value of string.
You can always change the HTTP response to the PNG content type, feed the binary data of the image into the response body, and serve that response from ASP.
You just need to pass a unique identifier for the image you which to show as a request parameter.
The
srcattribute can then point to the URL of this ASP page with the request parameter representing the picture you want to load.