javascript - How do I get a canvas to attach to paperclip so I can save it into my database? -
i have little demo of of camera app:
https://shielded-plains-5586.herokuapp.com/
when press "drop', creates canvas after take picture webcam below it. problem don't know how canvas image , have save database through form paperclip on it. i'm stumped. help?
use canvas.todataurl()
, return image data uri.
post server need write file , save path in database.
https://developer.mozilla.org/en-us/docs/web/api/canvasrenderingcontext2d/getimagedata
Comments
Post a Comment