data:text/html;base64,[Your base64 encoded HTML here]
data:image/png;base64,[Your image data here]
The latter is extremely common for embedding static resources directly into HTML pages. To the point there JS APIs the form obj.toDataURL()[0]
[0] https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasE...