Problem with generating pixel representation of image upload in Adobe XD

Turns out that was a bad recommendation. I ended up using the npm library base64-arraybuffer, which works great.

I posted an example at Please include base-64 utilities.