According to my knowledge we can download a file using Servlet,As get the file content using FileInputStream and print the output using ServletOutPutStream.I want to know is there any other ways to download the file using servlet(we can use spring web module).