Results 1 to 3 of 3
  1. #1
    vinodkonatala is offline Member
    Join Date
    Oct 2008
    Rep Power

    Thumbs up How to upload image into server

    Hi all

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


  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    If you want ,i wrote some weeks ago an upload image to the server servlet

  3. #3
    DevzAbhi's Avatar
    DevzAbhi is offline Member
    Join Date
    Jul 2008
    Rep Power

Similar Threads

  1. error while loading the image from the server
    By testtest in forum CLDC and MIDP
    Replies: 1
    Last Post: 09-23-2008, 05:16 AM
  2. Automatically File Upload to server ...Help Needed
    By 82rathi.angara in forum New To Java
    Replies: 6
    Last Post: 08-05-2008, 07:13 AM
  3. What to upload in the server?
    By impact in forum Java Servlet
    Replies: 4
    Last Post: 07-15-2008, 03:36 PM
  4. image download from server
    By willemjav in forum Java Applets
    Replies: 2
    Last Post: 04-03-2008, 10:13 PM
  5. Image upload applet 2.0
    By jfileupload in forum Java Software
    Replies: 0
    Last Post: 03-24-2008, 05:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts