taking a canvas to the server

57 views
Skip to first unread message

mm

unread,
Aug 10, 2009, 6:58:16 AM8/10/09
to google-excanvas
dear all

i'd like to create kind of a "web painter" using canvas and excanvas
(the sources will be open if i succeed). the idea is to provide a
widget to allow users to create small paintings. of course these
paintings must be safed somewhere on the server. and here comes the
point:

i found now way to access data of the canvas to be safed to the
server. has anybody an idea? as far as i know toDataURL() is not
supported in google-excanvas, right?

thanks a lot for the inputs!

Ryan Schmidt

unread,
Aug 10, 2009, 7:46:18 PM8/10/09
to google-...@googlegroups.com

Right. Instead, you might have to record all the user's actions on
the client side (in your own JavaScript structures for example), and
when you want to save it to the server, send all those structures to
a server-side script that can replay them and recreate the drawing on
the server.

Fabien

unread,
Aug 16, 2009, 6:36:20 AM8/16/09
to google-excanvas
There is a web site that proposes something like this : http://www.gartic.com/sketch/
To save the picture as a bitmap image in IE, it seems to save all the
user's actions, and send all this using a POST request to the server,
which draws it back on a bitmap image and send it to the browser.
You maybe can contact the author, I think he may be ok to help you (I
found his website on http://www.chromeexperiments.com/)

Fabien
Reply all
Reply to author
Forward
0 new messages