I am trying to enable file transfer between two smack clients connecting to a google talk server. I seem to be having an issue determining what the desired receiver of the file “full JID and resource” are. I know their JID, but am having trouble locating the specific resource.
FileTransferManager manager = new FileTransferManager(connection);
OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("firstname.lastname@example.org/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:
I don’'t have the correct resource.