Here i am using iOS XMPP library (https://github.com/processone/demo-xmpp-ios) for my chat application, can any one help me out for uploading image from this library.thanks
How we can upload image or photos to ejabberd XMPP web server?
1.3k Views Asked by Bucket At
1
There are 1 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in SWIFT
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Swift code with multiple NSDateFormatter - optimization
- How do I add multiple in app purchases in Swift Spritekit?
- cellForRowAtIndexPath and prepareForSegue return different label colors
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Change background of an Accessory View in a UITableViewCell
- fade in an bounce animation subview
- Create a PFObject and PFRelation after PFUser Sign Up
- Swift 2 - Pattern matching in "if"
- How do I give inputs through NSURL
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- Compiler complains that 'Expression resolved to unused function' when removing index in array of functions
- Cast from 'Int?' to unrelated type 'NSNumber' always fails
Related Questions in XMPP
- sendxmpp not authorized failure (Error AuthSend)
- C# agsxmpp Domain vs connectionserver
- Android Smack4.1.1 XMPP FileTransfer Issue with Iphone
- How to login with recently registered user to openfire in ios?
- Server less Group Messaging (chating) Xmpp
- SASLException not authorized using smack 4.1.1
- Android aSmack - How to make custom message extension for file sending?
- Unable to receive upstream GCM messages with Node.js + XMPP
- Is Node-XMPP useless ? Choosing XMPP server
- Allow ejabberd_service (Jabber Component Protocol) to modify user's roster
- oauth2 authentication support in ejabberd
- iOS XMPP received message in conversation screen
- Typing Status Smack 4.1
- how ot get lastactivity using openfire server and asmack in android
- xmpp send, wait for response
Related Questions in EJABBERD
- Unable start mongoose im in ubuntu. process crashes
- Sending messages to ejabberd doesn't work for me
- Server less Group Messaging (chating) Xmpp
- ejabberd block messages from users that don't stay in my friend list
- Allow ejabberd_service (Jabber Component Protocol) to modify user's roster
- oauth2 authentication support in ejabberd
- Facing badmatch keyfile error while fetching APNS Socket
- Share profile picture change to all users in my roster
- Connection attempt from disallowed node 'ejabberdctl-1@localhost'
- XMPP support for avatars in multi-user chat
- All languages except English literals parsed in GCM POST request
- Parsing ASCII characters with Erlang
- Trouble installing ejabberd on ubuntu
- mod_rest on ejabberd 15.0.4 on MAC OS X yosemite is not starting
- How does whatsapp Keeps its eJabberd/XMPP server connected when the app is Closed?
Related Questions in XMPPFRAMEWORK
- iOS XMPP not able to send message
- xmpp - how to get room chat history
- expected an objective-c directive after '@'
- How to get last conversed user using XMPP ios8?
- MUC Light using XMPPFramework
- XMPP remote server connection issue iOS
- MAM XEP-0313 - Query conversation list for a particular user
- How to add user to existing ROOM in XMPP iOS?
- How we can upload image or photos to ejabberd XMPP web server?
- Ejabberd 16.09 Muc Discovery
- XEP-0363: HTTP File Upload in Swift
- XMPPFramework in podspec
- "unavailable"(Offline) presence not updating at the both end
- How to connect XMPP server through XMPPFramework in ios in objective c
- Trying to install XMPPFramework in my objective c Project using Podfile
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I would recommend uploading images to a third party server and then sending the URL via XMPP.
Here's an example using Backendless which offer 20GB of free file uploads. You would have to also follow the Backendless docs to install their SDK and setup the API keys:
Or to a PHP server using AFNetworking:
Then you can add the image and thumbnail URLs and the image dimensions to the XMPP message:
I'd recommend setting the body to the
imageURLso that the image could be opened from a standard XMPP client.When the message is received, you can access the details again as follows:
You could then display the image using SDWebImage.
I'd also recommend this ChatSDK which is a full front end messaging interface for iOS. It contains UITableView cells to display image messages. I used it to build an XMPP messenger using XMPPFramework.