The attached file is my method for hex encoding any file into an include-able SUB with
a re-assembler ready to go. I've used it on png, jpeg, bmp, and even executables.
It seems to be working quite well but if you find bugs, tell me and I'll try to fix it.
Compile BinBas.bas as a console mode app. If you run it from the command prompt,
you can watch what's happening. You can also drag and drop files onto BinBas.exe.
Read the comments inside the source code for more details.