AnsweredAssumed Answered

Un able to download  image  using java script and strophe.si-filetransfer

Question asked by rajaramesh on Aug 19, 2015

Hi ,

I am developing XMPP javascipt application for web/mobile client. I able to do text messaging. I want to do file transfer using strophe file transfer library. I send image file from user1 to user2. The user2 is getting file ,but the problem is how to download from strophe file transfer library. I attached file handler

 

conn.si_filetransfer.addFileHandler(fileHandler);

I atatched

 

conn.si_filetransfer.send(reskp,sid,filename, sizefile,'image/jpeg', function (err) {

});

In strophe.si-filetransfer.js file ,it is calling receive and success function.

 

 

The problem is i am unable to download image file  could any one guide me.

 

 

Any advise would be greatly appreciated.

Outcomes