File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Online collaborative drawing program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Online collaborative drawing program" Watch "Online collaborative drawing program" New topic
Author

Online collaborative drawing program

Len Padson
Ranch Hand

Joined: Nov 21, 2011
Posts: 40
Hello! I am trying to create a networked collaborative drawing applet, and I'm looking for suggestions as to the best, easiest, most efficient way to do so. To start, the only functionality I want is to be able to scribble on a canvas, so what should i send from the client to the server and then from the server out to all the clients? should i send the whole image? Should i send coordinates of the points drawn most recently? Or is there some third option that would be faster? I do not want to end up with an ArrayList of every coordinate of every line becasue then as time progresses response time will get slower and slower. So please help? Thank you!
 
Don't get me started about those stupid light bulbs.
 
subject: Online collaborative drawing program
 
Similar Threads
my communication design - your opinions please
Passing huge string to JSP..
java mail
passing files with threads
How do you uniquely identify a user of a midlet on a server?