how can i send image in sendChat api appwrap android

0 votes
i am creating chat applicaiton in which i want to send image in sendChat() api so how can i send image in sendChat() api ? please help me
asked Apr 11, 2017 in Android by bhaveshgoswami6 (10 points)

1 Answer

0 votes

Hi Bhavesh,

Greetings from ShepHertz !!!!!!!!!

You can create a json String  with image url or local icon name and send in chat API. On the receiver side you can parse the chat message. For e.g.


Let me know if it helps.


Vishnu Garg


answered Apr 11, 2017 by Vishnu Garg (674 points)
i am sending image from my android device so receiver may not have image at that specific url then how should  i display image ?
In that case you can send image URL that can be downloaded that side
can you please give me one sample example ?
You can parse Json on receiver side and get the value from image Node and can show accordingly.
how can i pass json in sendChat() api and how can i differentiate simple text message and json object ?
Pass Json as String, use json.toString() for that.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on