Hai all, i have a problem with uploading the image file. In my html file i use the tag like <input type=file name=image> and in my servlet getParameter("image") , i get the path of the file and this works fine for my local system, but i want the file to be uploaded even from client machines. can any one help me how to modify my html and servlet program so that i can store the image in my java web server. thanks prabhakar.
1. Are you specifying in your HTML form that the enctype="multipart/form-data" 2. Are you specifying that the method="post" 3. out of the box, HTTPRequest doesn't understand a multipart/form-data submission, so are you using a home-made solution to parse the request appropriately, or do you have a package like com.oreilly.servlet?