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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -