Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

problem connection to send file with smack and coldfusion

$
0
0

Hi Everybody,

 

I Have a problem with the smack API.

I have to create chat and i need to send file to each other.

There is a class for that (fileTransferManager) but when i want to initialize this one i got a problem.

 

He told me that he don't know the arg of the constructor

The arg constructor is a XMPPConnection type and when i give it to him he told me :

 

**Unable to find a constructor for class org.jivesoftware.smackx.filetransfer.FileTransferManager that accepts parameters of type ( org.jivesoftware.smack.XMPPConnection ).**

 

Here's the code

 

    XMPPConnection1 = createObject("java", "org.jivesoftware.smack.XMPPConnection").init("jabber.cz");

    FileManager = createObject("java", "org.jivesoftware.smackx.filetransfer.FileTransferManager").init(XMPPConnection 1);

    FileManager.createOutgoingFileTransfer("yoyonana@jabber.at");

 

Someone to help me please ?

 

Thank you in advance


Viewing all articles
Browse latest Browse all 10742

Trending Articles