Spring mvc return file to download
10 Dec 2019 A quick and practical guide to returning an image in a Spring REST endpoint. Download an Image or a File with Spring MVC. Last modified: 15 Aug 2015 Download a file in Spring MVC Application by writing it's content to This post shows you how to implement File Download using Spring MVC 4. We will outputStream.close();. return ;. } String mimeType= URLConnection.