This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 10445
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
 
You don't like waffles? Well, do you like this tiny ad?
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!