I am retrieving a base-64 string that is a representation of an image from the database. When I try to render the image in HTML, like this:
<img src="my base-64 string" />
The string gets broken up and doesn't render correctly. However, when I use the same string and attempt to render the image using ASP.NET, like this:
<asp:Image runat="server" ImageUrl="my base-64 string" />
It works successfully. A case has arisen in which I need to bind the HTML image source to a new base-64 string on the client side, therefore necessitating that I use the first method. Is there any way to accomplish this?