I was creating a small dialog in an .hta file and to make a little prettier for the user I included a company logo:


But I wanted to deploy the .hta as a single file.

And this can be done using data: followed by a base64 encoded png:

The Base64 encoding can easily be done with PowerShell: