I am developing a site as a student project, in which you're supposed to login > take a picture with your camera > display all the pictures ever taken > like and comments picture.
I already have that piece of Javascript which draw an image on a canvas from the camera stream. Then it sets a new element and set its 'src' attr to canvas.toDataURL(img/png); to display a preview for the pic just taken.
Now what I want, and can't find a solution for, is saving this new created picture to my server on a /img/photo1.png directory OR stock a link on the database that I can output later.
Thanks for helping.
(BTW, I'm not allowed to use any library (no JQuery please !!))