I'm having trouble wrapping my head around how to do this.
I have a DataTable being returned via stored procedure. I'm then going through it and creating a delimited file based off of the information returned.
I've made it here without any issues.
My problem is taking my StringBuilder object and creating a CSV file with it and then sending it to the user to download. I can't create a temporary file on the server due to permissions so I'm trying to do this all in memory.
I'm thinking I need to do something with a MemoryStream to create the "file" and then serving it up with Response but I'm not sure what steps to take.