Yes, if you have a standard storage file you can write binary data to it.
Easiest thing to do is give it a go, but I'm pretty sure you can just do require("Storage").write("MyFile", new Uint8Array([....]))
require("Storage").write("MyFile", new Uint8Array([....]))
When you read, I think you'll still get a String, but it's easy to convert with E.toArrayBuffer: http://www.espruino.com/Reference#l_E_toArrayBuffer
E.toArrayBuffer
@Gordon started
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.
Yes, if you have a standard storage file you can write binary data to it.
Easiest thing to do is give it a go, but I'm pretty sure you can just do
require("Storage").write("MyFile", new Uint8Array([....]))
When you read, I think you'll still get a String, but it's easy to convert with
E.toArrayBuffer
: http://www.espruino.com/Reference#l_E_toArrayBuffer