mobomo / sketch.js

A jQuery plugin for dead simple Canvas-based drawing.
http://intridea.github.com/sketch.js
290 stars 110 forks source link

Send Image in HTML form #40

Open afilipecb opened 8 years ago

afilipecb commented 8 years ago

Hello,

How I can send the image through an HTML form? Ie within a form, draw and send (upload) the image on the form.

Thank you.

josemilioz commented 7 years ago

You can transform the draw into base64 data, store it in a hidden input and send along with your form. On the server side, you can do what your want with that data: store it raw, create a new image from the data, and so on.