...
For your Base64 equivalent encoding make sure you have added the image type information to the beginning of it. Like this for a PNG file. data:image/png;base64,
Truncated Example dataExample of Value data:image/png;base64,iVBORw0KGgoAAAAN..........................
...