cancel
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?

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi,

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 http://sys-con.com/story/?storyid=36122&DE=1

Hope it helps

Detlev

Answers (0)