Showing results for 
Search instead for 
Did you mean: 

transfering files

Former Member
0 Kudos

hi. i need to process a file from another computer. how can i transfer the file to a destinated place and process in java? currently, we have to manually copy the file. can it be automated? any idea?


Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos


the information about the two computers are a bit insufficient - they are in the same network, at least?! Is the dir structure from computer A mounted at computer B? If not, could ftp be one out of a thousand solutions?

This way it doesn't work?

URL url = new URL( "file://server/folder/file" );
URLConnection urlCon =  url.openConnection();
BufferedReader br =  new BufferedReader(
    new InputStreamReader(urlCon.getInputStream()));

NFS could be another solution, see

Hope it helps


Answers (0)