-3

I am creating a messaging app like watsapp and other messaging app.I have implemented messaging and easily able to chat with contacts but now I want to add contact image functionality to my application so that each contact will be able to upload there image and other user will be able to view contact image when they click on view contact. Also for each contact view on AppBar I want to show image in circular shape for contact.

Ajay Yadav
  • 1,625
  • 4
  • 19
  • 29

1 Answers1

0

What you want to do can achieved by saving the user's contact images to the server . There is no in-built functionality for storing the images of user inside smack Library so you have to implement that on your own . Send the user's images to the server (e.g. by multipart) and also you would be needing some server-side code to handle the images (saving and providing downloading functionality ).

Developer
  • 78
  • 8
  • I was thinking same way to write my own service to download image depending on authentication.I was looking for if there is already build framework for this procedure.And if you have any experience in building messaging app can you suggest what other technologies should I look into. – Ajay Yadav Dec 28 '15 at 09:31
  • I was having file transfer issues with Openfire and Smack So I used intermediate HTTP server to upload and download images . – Developer Dec 28 '15 at 09:40
  • The answer is not correct. XMPP and Smack provide standadized ways for user avatars. – Flow Dec 28 '15 at 18:11
  • @Flow Ok . Would you like to share the ways with us. We were not able to find them . Thanks . – Developer Dec 29 '15 at 04:11
  • Also , there are little troubles with VCard. http://stackoverflow.com/questions/1838770/how-to-set-get-profile-data-with-xmpp-using-smack – Developer Dec 29 '15 at 04:20
  • The answer you mentioned is from 2009. I doubt tnat the issues still exist. – Flow Dec 29 '15 at 08:47
  • @Flow : Thanks to tell about VCard. Can you provide any tutorial related to it so that I will able to configure it with my openfire and in my app – Ajay Yadav Dec 29 '15 at 13:34