W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > September 2010

[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.

From: <bugzilla@jessica.w3.org>
Date: Tue, 28 Sep 2010 06:31:29 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1P0Tir-00046A-HR@jessica.w3.org>

--- 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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:25 UTC