[Bug 10787] I don't see a way to save the canvas data as a BMP or JPEG or anything else that can then be uploaded via a FORM to a web server. This is a requirement, I woudl think.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10787

--- Comment #2 from Jonas Sicking <jonas@sicking.cc> 2010-09-28 06:31:29 UTC ---
For what it's worth, firefox 4 recently added support for canvas.getAsFile()
(though we added a vendor prefix so it's canvas.mozGetAsFile()) which has a
similar syntax as canvas.toDataURL() but also takes an optional name.

Arguably canvas.getAsBlob() or canvas.toBlob() would be better since no name is
needed.

Once a file/blob is retrieved it can be uploaded using XMLHttpRequest and
optionally FormData.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 28 September 2010 06:31:30 UTC