Here in QuickBlox we get the QBUUser instance of each user registered with the QuickBlox . But i did not found any property to set the avatar url for profile photo and update it. I was thinking to set url in property customData . Is this right way to set avatar Url or if any other way exist let me know. Thanks in Advance.
Set the chat/Avatar in QuickBlox QBUUser in iOS Chat
1.1k Views Asked by haresh At
2
There are 2 best solutions below
2
Rubycon
On
This is the right way
Also there is a blobId field to set the id of file from Content module
Here is an example how to do it http://quickblox.com/developers/SimpleSample-users-ios#Updating_a_profile_picture_.28avatar.29
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 CHAT
- PHP chat submit refresh button
- UCWA: integrating advanced chat options
- What technologies should I use to create a real time One to One chat?
- Mysterious number of chars read with read() in simple chat in C?
- Android pubnub chat using parse giving incorrect authentication key error
- jquery chat with time
- QuickBlox Chat not logging in
- Is it a good idea to use push notifications for mobile chat applications? (Android, iOS)
- JavaFX chat Application
- Framework for chat server using AKKA
- Scalable private message system
- Chat application using CFWebsocket
- Quickblox: not getting contact list from EJabber
- Create a job in Parse which delete all old objects in all Classes
- GCM and quickblox pushnotification
Related Questions in QUICKBLOX
- QuickBlox QB.chat.connect giving perplexing authentication error code 401 out of nowhere
- Quickblox Group Video Calls with Javascript SDK
- layer vs quickblox baas comparison
- Unable to register user on quickblox with PHP cURL
- QuickBlox Chat not logging in
- Video calling not recieving from android to iphone vice versa using QuickBlox
- QuickBlox Android to iPhone This Video Cannot be Played
- Session Lost in fragments Quickblox chat implementation
- Sending Image Attachment in Quickblox
- How to create the get method for the call
- Quickblox: not getting contact list from EJabber
- Quickblox changing the opponent in 1 to 1 chat
- Getting nullpointerException on creating new dialog in quickblox in android
- Quickblox WebRTC iOS: Receiver connection closes, unable to accept the call
- QuickBlox Opponent Video and audio stream is not coming?
Related Questions in AVATAR
- Ruby, update twitter avatar and background
- In Ruby, how can I update the avatar / background image file.jpg in a folder?
- Display logged-in User Avatar in Wordpress Nav Menu
- Avatar Creator using Javascript
- How to change avatar on gmail app for non-gmail account?
- How to find different types of file from a path
- django-tenant-schemas & avatars
- Avatar for an email address
- WordPress Display User's Avatar not Showing
- DatabaseError with django-avatar
- How to use django-avatar with my own User model and not with django.contrib.auth.models.User
- How to get to the avatar/image of a Jira user through SOAP or other means
- xmpp which avatar protocol to use
- Wrapping Wordpress Comment Avatars
- Django Error while saving avatar : expected str, bytes or os.PathLike object, not NoneType
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?
Finally i satisfied with customData property in QBUUser.
I just created a dictionary and set url in that dictionary within some Key.
Than created its JSON string and set it in the QBUUser property customData and updated it and it worked. Here is its small code snippet.
And in success block i got this response
ID:qbID
created at:2014-12-26 13:04:56 +0000 updated at:2014-12-26 13:05:02 +0000
externalUserID:45454 blobID:0 facebookID:(null) twitterID:(null)
full name:blabla
email:[email protected]
login:[email protected]
phone:9999999999
tags:(null)
lastRequestAt:2014-12-26 13:39:24 +0000
customData:{"user_picture":"myprofileurl.png"} website:(null)