FileTransferManager manager = new FileTransferManager(connection);
OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("testname@gmail.com/Smack");
transfer.sendFile(new File("testfile.txt"), "A Test File");
I have tried using smack as the resource and and the code doesn''t bomb. However when I check the status of the transfer I am at the "Initial" phase. I think the problem is when I am using:
createOutgoingFileTransfer("testname@gmail.com/Smack")
I don''t have the correct resource.
Any ideas?