Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet communicating with host server

 
Abhishek Yadav
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using an HTTP POST would seem to be a natural way, given that this is a web application.
 
Abhishek Yadav
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic