This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes sending data from applet  to  servlet 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 "sending data from applet  to  servlet" Watch "sending data from applet  to  servlet" New topic
Author

sending data from applet to servlet

Abhishek Yadav
Greenhorn

Joined: Nov 15, 2006
Posts: 26
Hi,
I posted this problem earlier and got solution of that, thanks a lot, but there are some complexity in getting the desired output. Below is the description.

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).

Some how i have succeded in saving the image of front and back side of the product to the server folder by writing the generated image to servlet output stream and read the data in the servlet code. I used a third party library for that.

My problem is how to write the image and some data(name and email of the person) to the servlet at the same time so that on the server side in the servlet code i can save the design associated with a particular person.

Thanks
Abhishek Yadav
SCJP1.5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41025
    
  43
So you want to do a POST from the applet to the servlet? Check out example e135 here.


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: sending data from applet to servlet
 
Similar Threads
Applet Servlet Serialized Object
Converting an applet into gif or jpeg
applet communicating with host server
HTML and servlet
Getting Bitmap from Canvas and converting it into image file format