Wednesday, 17 May 2017

image sends to Nodejs server

My p5js code is:

myFile = document.getElementById('file-input');

objUrl = URL.createObjectURL(myFile.files[0]);

uploadedImage = loadImage(objUrl);

image(uploadedImage,posX,posY,picWidth,picHeight);

How I send this image object to Nodejs server to draw image to the client side.



via Tanzeem

No comments:

Post a Comment