[Seaside] How to save a html5 canvas.toDataURL as a png file on the
server
Bob N.
bobn at rogers.com
Tue Jul 26 20:01:47 UTC 2011
(I also posted this in stack overflow)
I have an image that users can annotate on the browser. I can access the
image using
canvas.toDataURL()
...I'd like to add a 'save' option for the user to save the image on the
server.
This question has been answered for php...
file_put_contents('test.png', base64_decode(substr($data, strpos($data,
",")+1)));
...what I need is a Seaside callback with the PNG file contents.
Is there a way to do this in Seaside?
Thanks,
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110726/9f7bbe32/attachment.htm
More information about the seaside
mailing list