I’m working on an ASP.NET MVC App that has buttons that have the server return an rdp file, which is created by my business layer.
What I want is to be able to have the server create this rdp file, then serve it, without having it stored on disk.
What would be the best way to go about this?
Thanks.
You can create the file in a MemoryStream and then serve it by using Response.Write
Also don’t forget to set the ContentType to “application/rdp”
Edit: As Danny Chen suggested you can use
FileStreamResultin the controller class