We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Save Frame to Server
Page Index Toggle Pages: 1
Save Frame to Server? (Read 1270 times)
Save Frame to Server?
May 2nd, 2005, 3:22am
 
I'm thinking about building a collaborative drawing application in processing, and I'm not sure on whether to get every pixel of the screen via pixels[], and then put that into a POST to PHP -> GD, etc, or whether there is a  simple way to do this in Java. Of course, I'd prefer Java just to reduce server load a bit, but if that isn't possible, does anyone have ideas as to the best way to send an image to a server via POST without killing it?

Thanks for your insights, etc.

Tom ( http://www.workingidea.com/ )
Re: Save Frame to Server?
Reply #1 - May 4th, 2005, 4:00pm
 
If the drawing is all done by strokes, instead of pixels, you coudl jsut send the verticies of the strokes (and it's color/thickness/etc) to the server, instead of every pixel from the drawing.

Also you may want to put some thought into how often you need to send/recieve data from the server, too often, and the applet will be spending most of it's time hammering the server, instead of workign on drawing and the like.
Re: Save Frame to Server?
Reply #2 - May 4th, 2005, 5:39pm
 
this might get you started:

http://processing.org/discourse/yabb/YaBB.cgi?board=Integrate;action=display;num=1106908696;start=5

the links to my website are dead since i'm updating the old stuff to work with beta.

F
Page Index Toggle Pages: 1