Save to local storage, canvas and image should always remain

Hi friends,
How do I save the variable mybytes holding the data to local storage so that the circles(images created after you drag and drop the Midi file) will always remain on the browser even if web page is reloaded?

How do I make the canvas to always remain even if the web page is reloaded?..is that possible?

This is the link to the codes

This is the link to a Midi file, you can download it, the drag and drop on the canvas.

I am looking forward to your help
Thanks

Hi @Chigoz,

Take a look here as a starting point…

Cheers
— mnse

2 Likes

storeItem()

2 Likes

Thank you very much, I will check out and implement your answer.

Thank you very much, I will check out and try implement your answer.