wood burning stoves 2.0*
The moose likes Servlets and the fly likes File transfer across two systems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "File transfer across two systems" Watch "File transfer across two systems" New topic
Author

File transfer across two systems

aditya seth
Greenhorn

Joined: Nov 01, 2005
Posts: 11
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

Joined: Oct 12, 2004
Posts: 306

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

Joined: Nov 17, 2005
Posts: 4
you can use socket to transfer informations betweens two systems
 
wood burning stoves
 
subject: File transfer across two systems