This week's book giveaway is in the Open Source Projects forum. We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line! See this thread for details.
Do a search on "upload" on JavaRanch and you will find several threads on this already. The concensus from most people (including myself) is to use the com.oreilly.servlet... packages found at Servlets.com and described in Jason Hunter's book. Kyle ------------------ Kyle Brown, Author of Enterprise Java (tm) Programming with IBM Websphere See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
"yaser" your name doesn't agree with javaranch guidelines. Please take a moment and re-register after reviewing the guidelines at http://www.javaranch.com/name.jsp thanks for your cooperation. - satya
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
there is no package like ftp or that can upload file.but u can achieve your objective using scoket programming for uploading files and trusted applet that can read files from client. khurram mirza
Khurram, Your applet solution will also work, but your post isn't quite true. There is a standard HTML control for multipart file upload that you can use to upload files through HTTP. The com.oreilly.servlet classes mentioned above show how to correctly parse the output of the HTTP stream and rejoin it into a file -- you can use them to upload files of any type. Kyle ------------------ Kyle Brown, Author of Enterprise Java (tm) Programming with IBM Websphere See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.