I know this type of question is posted earlier also.
But I didn't got any answer on that link.
I am using open fire server, XMPP, and strophe for html chat client.
now I want to transfer image to all subscriber of my pub-sub node.
Is it possible to implement file transfer using strophe?
a way maybe is upload the file to yoyur server and sen the link to the another user like a message....later the user clicks the link and download it or show the source as an image in the chat area...
Related
In the industrial environment, we have a SCADA system for monitoring temperatures, humidity, and other params. When an alarm comes, I cand send some variables from our software.
Currently, I have managed to make working with the SMS gateway service. Is it possible to open the Viber desktop app and send some text messages in alarm? I read you could make bot with some PHP application, but I'm not programmer. Any easy solutions?
Refer to this.
Create a link that will open Viber and WhatsApp and will send a message to me
Thanks
Yes you can!
Viber has a simple api that you can integrate in your scada. Every connection require a called "viber bot".
Example is in Javascript using node.js framework at serverside but viber offers a variety of ways to integrate.
Check this link!
Viber Bot Api
Also this tutorial is very helpful! Build Viber Bot
I am using Xmpp framework for a chat Application. I can able to send file through xmppOutgoingFileTransfer Obj.
But xmppIncomingFileTransfer Obj for receiving image is not working for me. Means it doesn't enter in to delegate method "didSucceedWithData" Method.
Please share the solution
For transfer images and videos you have to upload this on your server and after complete this upload process you have to send this(Upload video/image) link to user. So user can easily download from that particular link.
I am working on a xmpp client, using eJabberd as server. My question is How can I support offline file transferring?
I only want to do the offline file transferring,For example, I can transfer an image to user named as Purushottam even he is offline. When Purushottam will come back Online, the server will send him the image.
How can I do that? Is there any module for this in ejabberd ?
Thanks in advance!
Answer to question 1:
You can send it post it to your server using a HTML form upload or some REST service. After which you send a stanza to your user notifying that it needs to download the file from an accessable location on your server.
See also:
file transfer in multi user chat to muliple users
Answer to question 2:
As mentioned already: no
Is there a way to use email (i.e., the SoundCloud user's registered email) to upload an audio file? FriendFeed uses this method, which bypasses the need to integrate their APIs and solves the problem of queuing if the mobile device is not on the network when the upload request is made. They use the subject line for title and the message content for description. It makes it easy for any app that can email a sound to load into FriendFeed.
No, this isn't possible, but I'll raise it with the team as a feature request.
This functionality can be achieved using ifttt.com connected to your SoundCloud account.
Add the IFTTT email channel and SoundCloud channel, then add this recipe: https://ifttt.com/recipes/230468-soundcloud-upload-via-email
Then simply send an email to trigger#recipe.ifttt.com with the track attached and it will automatically upload to SoundCloud as a public track.
I have a functioning XMPP chat client that is working with gtalk. I can not figure out how to implement some of the google custom extensions using the Smack API.
Specifically, I want to set the google talk user settings such that archivingenabled = false as described in the following link.
https://developers.google.com/talk/jep_extensions/usersettings
Additionally, if I decide to leave archivingenabled= true and try to control the google off the record setting individually I would need help monitoring and setting the google:nosave state as described in the following link:
https://developers.google.com/talk/jep_extensions/otr
My problem is that I can't figure out how to implement either of these things in code. The igniteRealtime documentation describes the approach in the following link:
www.igniterealtime.org/builds/smack/docs/latest/documentation/providers.html
(note: http:// was removed because I was over my limit on links)
I would appreciate any examples on how to code these 2 google talk extensions.
Thanks!
Matt
Start by creating a packet that extends IQ to send your requests. This can then be sent using SynchPacketSend(). Each individual command is an extension to be added to this IQ packet.
Then create a provider, as shown in the link you provided to convert the reply into your custom packet type.
You can look at the LeafNode.getItems() request as an example. Just follow the code and it will show you how to create and send the appropriate IQ packet. Check the providers package for how to receive replies.