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