powered by Jive Software

Howto use File transfer

Hello everybody,

I’‘m a french student and I’'m working with the sip-communicator team. My job is to add filetransfer into sip-com.

Sip-com use smack for jabber messaging.

I have no problem to receive file, but I can’'t send files.

In a first time, I try to use the following code comming from the smack documentation :

// Create the file transfer manager

FileTransferManager manager = new FileTransferManager(connection);

// Create the outgoing file transfer

  OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("romeo@montague.net");

// Send the file

transfer.sendFile(new File(“shakespeare_complete_works.txt”), “You won’'t believe this!”);+

With this code, I get the following error :

Exception in thread “AWT-EventQueue-0” java.lang.IllegalArgumentException: The provided user id was not fully qualified

It will be great If someone can help me.

Thank’'s in advance.

No one want to help me or explain me how the file transfer work ? I juste need some example to send file …

You need a full jid to send a file romeo@motengue.net/balcony

Thanks,

Alex

Ok, I add the /something and now I havn’‘t any error but the file transfer doesn’'t no work.

Can you please give me a working sample for file transfer, specally to send file ?

Thanks