We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all, I am trying to create a project in which the user draws something in the p5 canvas (say there is some image and it is drawn at mouse X and Y, and I just don't redraw the background) then presses a save button. I don't want the save button to prompt a download for the user, but instead save the file to my server. I host with godaddy if that matters.
I have done some searching, I am still not sure how to go about this. I thought I would be able to do it just from p5, but now I dont think so. What I think I do need to do is run something written in node.js that waits for a message from my p5 program, receives the message, and sends a save request back to p5, p5 will then send its data, perhaps in the form of the pixels array and node.js will save it? Not sure..... if any of you could point me in the right direction it would be much appreciated, thank you!