Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading File??

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic