I use C#-MVC3. I have an “export” page. I have some functions for exporting different tables from the DB, every function creates a CSV file from the table and returns a FileContentResult file to the user.
Now I want to create a button for “export all”, to download all the files at once.
I tried to use ZipFile but it gets only file names and path – files that were saved on the server, not “FileContentResult” files.
So I wanted to save the “FileContentResult” files temporarily on the server, zip them and delete them – but I can’t find how to save a “FileContentResult” file.
If you can help me or give me another idea, I’ll glad to hear.
my solution: