Spring Boot MVC download image or binary file

Sometime we want our user to download some file from our web application that is developed in Spring MVC or Spring Boot. To achieve this the main trick is to send the Content-Disposition http header before sending the data. Here is an example of a Controller class with just one method that take the name of a jpg image file from url, read that file from a predefined location, set the appropriate http header and send the data to the client.