File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week in the JavaScript 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: 42584
    
  65
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: 42584
    
  65
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet communicating with host server