Thanks for your interest into PaintWeb!
I haven't used Google App Engine with PaintWeb, but you should be able to
nicely send it a JSON with XMLHttpRequest, containing the image data URI
generated by PaintWeb. Just follow the official docs from Google App
Engine, and you should be fine.
The answer you got from Stackoverflow sounds really good - same thoughts
here.
You may also want to check how you can integrate PaintWeb into your web
apps:
http://code.google.com/p/paintweb/wiki/Integration#Image_save_integration
You need to write a minimal extension for PaintWeb which handles the
imageSave event. When you get the event, you also receive the updated
image data URI that you can then pass to your server-side code, using an
XMLHttpRequest.
If you want to see a working example, take a look at the Moodle
integration code:
http://code.google.com/p/paintweb/wiki/MoodleIntegration
Here is the PaintWeb extension which handles the imageSave event inside
PaintWeb:
http://code.google.com/p/paintweb/source/browse/trunk/src/extensions/moodle.js#134
As you can see, it constructs an XMLHttpRequest which is sent to the
server-side script.
Obviously, the server-side script needs to take the data URI and save it
somewhere on the server, and send back the URL to the saved image.
I hope the above answers your question. Please let me know if you have
further questions, I am glad to help!
Best regards,
Mihai
Le Tue, 21 Sep 2010 06:19:59 +0300, Doug Daniels
<daniels...@gmail.com> a écrit:
--
Mihai Sucan
http://www.robodesign.ro