This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
680 Views 0 Replies Last post: Jul 27, 2008 12:27 AM by feina1 RSS
feina1 Bronze 1 posts since
Jul 27, 2008
Currently Being Moderated

Jul 27, 2008 12:27 AM

FileTransfer resource

Hi, everyone, I'm a Google intern and want to creat a xmpp robort. here is the problem: 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?

More Like This

  • Retrieving data ...

Bookmarked By (0)