How to send an retrieved image from Mongo using GridFS in Spring Rest Call?
I have retrieved the image from Mongo DB using Spring Data and GridFs Template so i don't know how to serve that retrieved input stream back to user . Say they requested for the http://host.com/apple as a spring rest call . Now my application process the request by using the name apple it retrieves the apple image from a mongodb database . Now without saving anywhere i want to display the response as an image to user that will show http://host.com/apple image in the browser. How exactly i need to implement this ? Could you please share any code repository for processing the image request in