I get the impression someone's set you this as an exercise, so me giving you a bunch of code isn't a great idea.
So I guess you want to search around and find out how you can upload a file to a webpage, get the binary data from it, then convert it to something that's easy to send to Puck.js in a JS String. Then you could just save that data into a variable in Puck.js, and then you just have to reverse the steps to get the actual image at the end.
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.
Ahh, ok :) If you're going to use an app then take a look at https://www.espruino.com/Web+Bluetooth for an easy way to communicate from a website.
I get the impression someone's set you this as an exercise, so me giving you a bunch of code isn't a great idea.
So I guess you want to search around and find out how you can upload a file to a webpage, get the binary data from it, then convert it to something that's easy to send to Puck.js in a JS String. Then you could just save that data into a variable in Puck.js, and then you just have to reverse the steps to get the actual image at the end.