In visual studio code, create an html file and insert the code below into it.
Toggle HTML preview of file
Base64 embedded image is not displayed. Development console window says in red: GET file:///C:/sample/data:image/png;base64,iVBORw0…b8bh7+MXmRy9b/CFpctP/M1GKcKvX0yCOPPPLI/0P+E2AAA7JN+/OU8bgAAAAASUVORK5CYII= net::ERR_FILE_NOT_FOUND
It should display the image just like in a web browser
Originally posted on VSCode repo, but I think bug is in the extension. https://github.com/Microsoft/vscode/issues/5956
Steps to Reproduce:
GET file:///C:/sample/data:image/png;base64,iVBORw0…b8bh7+MXmRy9b/CFpctP/M1GKcKvX0yCOPPPLI/0P+E2AAA7JN+/OU8bgAAAAASUVORK5CYII= net::ERR_FILE_NOT_FOUND
Sample HTML: