Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced 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
 
Old January 21st, 2006, 12:43 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to virtual_manu
Default 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

 
Old January 21st, 2006, 08:10 PM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Jon Emerson
http://www.jonemerson.net/
 
Old February 20th, 2006, 08:39 AM
Registered User
 
Join Date: Jan 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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/







Similar Threads
Thread Thread Starter Forum Replies Last Post
how to upload image into sql server database avnishraj23 General .NET 1 December 4th, 2007 02:20 PM
how to upload folder from client to server hemaneelagiri ASP.NET 1.0 and 1.1 Professional 2 July 18th, 2007 06:10 AM
Upload a file to sql server database thas123 ASP.NET 1.0 and 1.1 Professional 3 January 9th, 2006 12:29 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
RE:Allowing web server to access database folder joshil Access ASP 1 April 18th, 2004 01:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.