Using How to send an Image from Web Service in Spring, I am able to send Image as a response to rest service call. But, I would like to send back Image and some information using json object to client using rest web service.
How do I do it?
Can we create a POJO object containing byte array (image) and other fields (other information) and send back to client like:
- Get Information and Image in single call
OR we always need to stick to separate calls for images like:
- Get Information
- Get Image