Charles Charles - 1 year ago 59
Java Question

Display Images from REST service beside texts in Android ListView

I would like to display images from a Java REST service along side a name on an android ListView.

Assuming we have a list of Student Names and their passports in png formats on a REST server, I'll like to create a list on an Android app shows the passport of each student beside their names.

I'm able to display their names but I don't know how to go about returning their passports alongside their name on the REST service as well as displaying the passport on the ListView

Answer Source

I was able to do this by converting my images to Base64 string and then sending them through JSON to the client.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download