0

I've used HTML5 capabilities of accessing the camera, so I took a snapshot using canvas object, converted the canvas object to an img element (img tag) using canevas.doDataURL("image/png"). This is all going well, now my purpose is to save the picture - from that dynamically generated img tag - into some folder or DB.

Any indication on where I might start ? That would be great !

P.S : I've resorted to this thread in order to get the dynamically generated img tag that will receive the converted canvas object

Community
  • 1
  • 1
Akheloes
  • 1,352
  • 3
  • 11
  • 28
  • You probably can't get access to your client's local domain to save in a local folder. You can certainly upload it to your server: http://stackoverflow.com/questions/11843115/uploading-canvas-context-as-image-using-ajax-and-php – markE May 22 '13 at 20:23
  • Hey, I see, but any chance to find a similar code with java (java-ee) ? – Akheloes May 22 '13 at 20:32
  • 1
    Untested, but I found this: http://blog.sangupta.com/2012/07/saving-html5-canvas-to-java-server.html – markE May 22 '13 at 21:08
  • Oh, thanks a lot ! That's good help, will try it out and let you know. Also, found this thread that's quite interesting : http://stackoverflow.com/questions/6431281/save-png-canvas-image-to-html5-storage-javascript?rq=1 – Akheloes May 22 '13 at 21:21

0 Answers0