*
The moose likes Applets and the fly likes applet communicating with host server 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 » Applets
Bookmark "applet communicating with host server" Watch "applet communicating with host server" New topic
Author

applet communicating with host server

Abhishek Yadav
Greenhorn

Joined: Nov 15, 2006
Posts: 26
Hi,
i am working on a web application in which a user can select an item(say a T-shirt) and can decorate on that item(simply by adding some text or image on it).For this we are using an applet and calling functions on it with javascript. When we select an item, the image of the item is loaded in the applet and all drawing is done on applet. After drawing i want to save the state of the applet as an image(probably in database). Please guide me, what can be done related to it or what strategy can be used regarding saving the state of the applet.Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
Using an HTTP POST would seem to be a natural way, given that this is a web application.


Ping & DNS - my free Android networking tools app
Abhishek Yadav
Greenhorn

Joined: Nov 15, 2006
Posts: 26
Actually i am looking for how to save the image generated in applet(modifying the background image by writing some text on it) to be streamed back to the host server and save it as an image in the database.

Thanks
Abhishek Yadav
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
Yes, and HTTP POST is a good way to do that (unless there are other ways to access the server that you haven't told us about).

Or is the problem the storing of the image in the database?
 
 
subject: applet communicating with host server
 
Similar Threads
sending data from applet to servlet
Images in Applet
SWT tableitem, image not displaying properly.
Erase / Image / Canvas??
Getting Bitmap from Canvas and converting it into image file format