This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
0 Replies Last post: Jan 5, 2008 5:27 AM by sarat chandra  
sarat chandra Bronze 1 posts since
Jan 5, 2008
Currently Being Moderated

Jan 5, 2008 5:27 AM

File transfer problem: transfer never really starts

 

Hi Everyone,

 

 

I wrote the standard code for XMPP file transfer like below

 

 

             &n bsp;           FileTransferManager ftm = new FileTransferManager(xmppConnection);

             &n bsp;          OutgoingFileTransfer oft = ftm.createOutgoingFileTransfer(replyCmd.getToAddress);

 

             &n bsp;          File attachment = File.createTempFile("response",""+replyCmd.getMessageId());

             &n bsp;          //attachment.deleteOnExit();

             &n bsp;          writeBodyToAttachement(replyCmd,attachment);

             &n bsp;          oft.sendFile(attachment, "");

 

 

Following is the configuration

 

 

I am using PIDGIN as my chat client. I am using Gmail accounts for both my chat client and chat server.

 

 

Now using the above code I initiate the file transfer. Once I accept the file on the chat client(pidgin). The file transfer progress doesn't increase. It says it is waiting for the begining of the file transfer. Where as on the server side when I wrote a while loop to check the progress I found the sentBytes to be -1 always.

 

 

Can you please help me out with the problem?.

 

 

Thanks

 

 

Sarat.

 

 

More Like This

  • Retrieving data ...