Project

General

Profile

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

tao zhong
Added over 1 year 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)

Added by tao zhong over 1 year ago

thanks

Added by denis fowler about 1 month 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)