wood burning stoves 2.0*
The moose likes Servlets and the fly likes Uploading File?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Uploading File??" Watch "Uploading File??" New topic
Author

Uploading File??

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi all friends,
Iam now developing one application which is uploading file and it is based on internet.Now my requirement is my user from any place can upload file on my local computer using internet connection through my website for that i have included client interface on my website.For that Iam using servlet for tomcat server and html for client interface.Now can any one please tell me is it possible for user that they can upload file on my local computer using internet connection
through my website from remote destination means I don't want that user upload file on my virtual tomcat server for that I have to download
those file from my virtual tomcat server on my local computer.For uploading file my user select file from their local hard drive using my client interface which is located on my website and my servlet should read that file from user local hard drive and write that file on my local hard drive using internet connection through my website.I want suggestion from you that the way iam planning to do this Is it correct or not? I just want to avoid downloading part from my virtual server.Eagerly waiting for someone reply.
Regards
Bikash
Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
Well !! I think if you want to have the file on your local machine then it has to go through the tomcat server. And then the tomcat will have to put it on your machine. But then there are some difficulties that are involved. What if the tomcat is not able to contact your machine ? What if your machine is down at the time that tomcat wants to transfer files ?
So rather then making the tomcat initiate the dialogue to transfer files let your local machine do that. There is a better way then manually downloading the files. Find out if the server runs a FTP service. You can write a batch job on your machine to FTP the contents from the tomcat server to your local machine and then schedule that job.
Hope this helps.
-Kaustubh.


Kaustubh. Mumbai, India.
 
Don't get me started about those stupid light bulbs.
 
subject: Uploading File??