File Transfer with Java CIFS Client Library

0

I am using this library for file transfer between Servers

I get the address of one and then convert it to a SmbFile as it would be possible to send that file to the other address of the Server

Code:

                String user = "username";
                String pass ="password";
                String sharedFolder="Compartido";
                String sharedFolder2="Test";

                String url = "smb://10.1.191.40/" + sharedFolder + "/test.txt";
                String urlconvert = convertSmbFileToFile(url);

                NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(
                        null, user, pass);

                sfile1 = new SmbFile(url, auth);

How could I move that obtained file to another server that I know the ip and the name of the shared folder

    
asked by Emilio López 18.05.2018 в 22:03
source

0 answers