Given a canvas in javascript, the normal workflow to save to a backend server is the following:
- Create canvas element
- Draw / modify canvas
- Call canvas.toDataURL()
- Upload this base64 representation of the canvas to your backend server (basic ajax).
Since the call to toDataURL() can be very slow, I'm wondering if it is possible to directly upload image bytes to a backend server, as opposed to the base64 way using toDataURL().
Any ideas?