upload file in server ( in folder NOT in database)
|
Pro JSPAdvanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
upload file in server ( in folder NOT in database)
hi guys,
please help me with JSP code for uploading files mainly images on my server ( in folders NOT in database). It is urgently required... help me buddies :D
You should look at the Apache Commons FileUpload project (http://jakarta.apache.org/commons/fileupload/) as a way to parse the POSTed images and provide you InputStreams for them. Then you just need to take the InputStreams and write them into your folder.
commons-upload.jar is certainly the best thing to give a try and it can be found from apache group you can also experiment with orielly's cos.jar which can be found at http://servlets.com/cos/