Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BulkUpload from a remote computer to the server

 
faisal usmani
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i am working on .wav file bulk upload and for that i am using DiskFileUpload.

The user will give me the names of the files along with the absolute path on its local machine in a file.

now i have to read that file , get the names and the paths for the .wav files on the user's local machine and upload them with that name on the remote server.

something like this

there is a abc.txt(suppose) file containing the name and the path of the .wav files

name absolute path
music1, c:\music1.wav
music2, c:\music2.wav
music3, c:\music3.wav

now he will give me this abc.txt file , i have to read abc.txt and upload the files.


my problem is how to i get the stream object remotely , locally i am able to do by using this

InputStream in = new FileInputStream(absolutepath);


help me !!!


regards
 
Dan Walin
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't FTP be an option?
 
faisal usmani
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Dan , but i cannot use ftp , i have to do on http
 
parshuram bingi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your client is always from the same machine then, one option can be that you can map a drive from where you are running the code and use the drive letter as if the file is local to the machine.

-parshuram.
 
faisal usmani
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry to say parshuram , but even that is not option , it has to be the way, i posted initially


thanks though for giving your time and concern
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my problem is how to i get the stream object remotely , locally i am able to do by using this

InputStream in = new FileInputStream(absolutepath);


Does this help: Read a file from Remote system
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic