Project

General

Profile

How to transfer file using tigase.jaxmpp.j2se.filetransfer.FileTransferManager

tao zhong
Added about 2 years ago

tigase.jaxmpp.j2se.filetransfer.FileTransferManager fileTransferManager = new FileTransferManager();

             fileTransferManager.setJaxmpp(jaxmpp);

             fileTransferManager.addNegotiator(new tigase.jaxmpp.j2se.filetransfer.Socks5FileTransferNegotiator());

             fileTransferManager.sendFile(peer, new File("E:/test.png")); 


Exception in thread "main" java.lang.NullPointerException

at tigase.jaxmpp.j2se.connection.socks5bytestream.Socks5ConnectionManager.setContext(Socks5ConnectionManager.java:618)

at tigase.jaxmpp.j2se.filetransfer.Socks5FileTransferNegotiator.setContext(Socks5FileTransferNegotiator.java:196)

at tigase.jaxmpp.j2se.filetransfer.FileTransferManager.addNegotiator(FileTransferManager.java:221)

Replies (3)

(1)

Added by tao zhong about 2 years ago

thanks

(2)

Added by denis fowler 11 months ago

samples codes in this link are for older versions of tigase and doesnot work for latest versions, Could you provide sample codes for versions 3.x.x ?

    (1-3/3)