Charles Charles - 10 months ago 41
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.