Results 1 to 3 of 3
Thread: How to upload image into server
- 10-15-2008, 06:33 AM #1
Member
- Join Date
- Oct 2008
- Posts
- 1
- Rep Power
- 0
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).
Regards,
Vinod
- 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
File upload Servlet by multipart/form-data, Free source code example
this is the perfect example for you to upload the file in multi part form .. ihope it helps.
Similar Threads
-
error while loading the image from the server
By testtest in forum CLDC and MIDPReplies: 1Last Post: 09-23-2008, 05:16 AM -
Automatically File Upload to server ...Help Needed
By 82rathi.angara in forum New To JavaReplies: 6Last Post: 08-05-2008, 07:13 AM -
What to upload in the server?
By impact in forum Java ServletReplies: 4Last Post: 07-15-2008, 03:36 PM -
image download from server
By willemjav in forum Java AppletsReplies: 2Last Post: 04-03-2008, 10:13 PM -
Image upload applet 2.0
By jfileupload in forum Java SoftwareReplies: 0Last Post: 03-24-2008, 04:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks