I have an service which returns the base64 version of an image. Now i want to use the base64 string in the src tag of an img. The service offers the ba
It is not working because you are treating a page featuring a Data URL string, as if were just another type of external link-able image asset. Unfortunately linking to an external asset works for image files, but Data URLs are meant as an alternative to an external link, and thus does not work in the same way.
In short, to display an image making use of a data URL string, you need put the actual data URL string as the src= value, in your case for example:
Example HTML from Masinter, 1998 RFC 2397 - The "data" URL scheme:
