I have to generate some files in my asp.net web application and send it to the client. So I made a method who work with a memory stream and send the buffer to the http response.
It is working fine but I just read another code and the guy is using a fileInfo. So if I understand correctly FileInfo is a "real" file written on the server disk.
So what is the best choice? (if there's one) What are questions I have to ask me? Is it about the size of the file?
Note that I don't care about storing the file, once he is send I don't have to have it on the server.