Can anyone knows that if i want to return other than ModelAndView object than is it possible?

Suppose i have a file which is .txt or .pdf file and i want return this file using ModelAndVIew Object or in other possible way if that exist.