I'm using ASP MVC, and I want to allow the user to download/view files from my web server.
The files are not located in this web server.
I know the file content (a byte[]
array), and also the file name.
I want same behavior that as the Web Broswer. For example, if the mime type is text, I want to see the text, if it's an image, the same, if it's binary, propose it for a download.
What is the best way to do this?
Thanks in advanced.