How do you load files from the server to the client?

Optimally, I would like the browser to prompt the user what to do with the file.

I see a class called DownloadStream and I wonder if this is used? and if it is how to use it correctly?

Your help would be greatly appreciated