Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

BulkUpload from a remote computer to the server  RSS feed

 
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
 
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
 
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
 
Sheriff
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
Boost this thread!