Sorry for the delay - I've been away this past week... But yeah, it'll be storing the data in text form and the standard array form before it gets into a Uint8Array.
To get the data in quickly and easily you could use base64, then atob and E.toUint8Array to convert the data. That should all be done without needing to allocate any data, and base64 is pretty compact.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sorry for the delay - I've been away this past week... But yeah, it'll be storing the data in text form and the standard array form before it gets into a Uint8Array.
To get the data in quickly and easily you could use base64, then
atob
andE.toUint8Array
to convert the data. That should all be done without needing to allocate any data, and base64 is pretty compact.You can use
btoa
on your PC to encode the data, or I made a file converter website: http://www.espruino.com/File+Converter