This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File transfer across two systems

 
aditya seth
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi frns.
i want to trnsfer file from one system to another system.
for this m using URLConnection so that client can make connection with server and server will create file for client and will send that file to client.
what approcah should be used for this transfer?
i tried using bufferedReader,Inputstraem but got problems like
either file received contains unwanted characters at start of file is not proper.

thx in advance...
 
jiju ka
Ranch Hand
Posts: 306
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

what approcah should be used for this transfer?
i tried using bufferedReader,Inputstraem but got problems like
either file received contains unwanted characters at start of file is not proper.


The file transfer may use a protocol like ftp, http etc.InsputStream and Buffered reader are to read the file. The transfer may happen after the file is read. This decision is part of your architecture planning.

You said you want to transfer file from server to client system. Does the client knows the URL of the file? If yes you may invoke a get operation just like you download an immage using ie.

If not can you provide a download option in server to client?

If client cannot do download can you set up listeners/receivers in client?
 
yi qian
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use socket to transfer informations betweens two systems
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic