Results 1 to 3 of 3
Thread: How to upload image into server
- 10-15-2008, 06:33 AM #1Member
- Join Date
- Oct 2008
- Rep Power
How to upload image into server
I am doing a project on Servlets and JSP's. In one of the page I have to save the details of person along with his image.
In JSP I used encryption type as multipart/form-data in form tag.
So when I make use of enctype=multipart/form-data I can't use of request.getParameter().
So what I did is I declared few string variables and assigned those variables to form fields as wrote the condition to save and upload image. Here I use commons fileupload jar for uploading image.
As of now I am able to save the details of the person in the database but not able to upload the image or even see the preview of the image.
So anybody help me in how to proceed further so that I can see the preview of the uploaded image as well as upload that image into images folder in my server( Tomcat).
- 10-15-2008, 11:47 AM #2
If you want ,i wrote some weeks ago an upload image to the server servlet
- 10-15-2008, 12:10 PM #3
- By testtest in forum CLDC and MIDPReplies: 1Last Post: 09-23-2008, 05:16 AM
- By 82rathi.angara in forum New To JavaReplies: 6Last Post: 08-05-2008, 07:13 AM
- By impact in forum Java ServletReplies: 4Last Post: 07-15-2008, 03:36 PM
- By willemjav in forum Java AppletsReplies: 2Last Post: 04-03-2008, 10:13 PM
- By jfileupload in forum Java SoftwareReplies: 0Last Post: 03-24-2008, 05:15 PM