This thread is archived
0 Replies Last post: Jul 9, 2007 10:18 AM by SLREU2007  
Click to view SLREU2007's profile   1 posts since
Jul 9, 2007

Jul 9, 2007 10:18 AM

FileTransfer resource

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("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?