Hi guys,
It looks to me as if you are re-inventing Base64 encoding. It's supported by most browsers.
The main advantage over Hex is that Base64 is 66% smaller due to more bits are being used when encoding, as Steve mentioned. 6 bits vs. 4 bits.
Base64 is standardized (for the most part) and can be used to paste images or zip files in the browser search window. Correct mime-type must be specified. See:
https://en.wikipedia.org/wiki/Base64and also
https://en.wikipedia.org/wiki/Data_URI_schemeIn this example the image is specified as a jpeg. To view the image, copy and paste the date into the browser search window.
Using Chrome:
1) Copy the data from the code box below.
2) Open Chrome and right click in the search window (where you type your question or URL)
3) From the pop-up menu, select "Past and go..."
4) A new tab shows up with the decoded image. You can right click on the image and save to disk.
Curly Fern IFS image: 100x75
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABwEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAASAAAAclEQAAEAAAABAQAAAFERAAQAAAABAAAAAFESAAQAAAABAAAAAAAAAAAAAABgAAAAAQAAAGAAAAABUGFpbnQuTkVUIHYzLjUuMTEA/9sAQwAQCwwODAoQDg0OEhEQExgoGhgWFhgxIyUdKDozPTw5Mzg3QEhcTkBEV0U3OFBtUVdfYmdoZz5NcXlwZHhcZWdj/9sAQwEREhIYFRgvGhovY0I4QmNjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2Nj/8AAEQgASwBkAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29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VzczXUzSzyNJI3UmoqK6IxUUS3cK2dE1aPTIZzI0sjOMLEB8ufXOf6VjUU2lJWYloOkkaSRpG+8xJP1optFMCzZWcl5IVQ7VXlmI4AroIrGxsYWtzLO0sqbzgDCgdD+vTNZ1gRHpgIwC8pBzxnAGB+v61avVa68uaBys4HynPDDrj/ACe9Yzbbt0KWwyC4VkEZIKn1GRjPv16VTt4ss89pGUbO2IM2dp7t+X6n2qCV7hpdkkfLnbgfxH2NTS3EUFx5UefLTC7h044J98nmqStsFya3iaH/AFl0jLxjy1L9fritEyeauIlmBAUllI5I9Mg47VWtIldMbGjB6PIuF+nXNPlklkf9zcpGpwVaMFznHPJxgc/rUPVjQ46ZNJ80dzeIw6Etu/lj1/WqOvXF2WhtboDESZVgcl8/xE1LHZTllaPUZOACN25f157VV12W7mvg94iodoCbeV2+x796cfiE9jNooorYkKKKKACiiigDR0uUMslqSQZOVbPAwDkfj/SphI6koynHIIbIzxWSCVIKkgjoRUjXMrLhmz796lxux3NBbh5b+Ny7MkK7sdkYDg/nilTy4YwIokOc7nZdxH0/+tVe1l/0W8dxuJRU9zlgf/ZahW8kUkkKSenHSlYDVRC8oaVgu7AAY456dzSXF7DZL5SoWmAKlT/Aexyev+elZ66lOIZIyEO8YB2gbfpiqdJQ7hc0zrt9v3JIsYznCqCB+eaNZ1NdQFuqJgRLy2MbmOMnHYcVmUVXIr3sFwoooqhBRRRQAUUUUAFFFFAE8UoWynj5y7Jj8M1BRRQAUUUUAFFFFABRRRQAUUUUAFFFFAH/
I've already posted a few version of Base64 encoded files for:
Blitz Basic
https://socoder.net/?Snippet=33278SDL Basic
http://sdlbasic.epizy.com/showthread.php?tid=398JustBasic (link no longer available as old forum was closed)
Currently working on the QB64 version. Would like to create in an InForm GUI eventually.