P
polaris431
In my ASP.NET app, I would like to return data back to the client in
such a way that it appears to the client that a file is being returned.
As you know, when you click on a link on some web pages that have a
hyperlink to a file such as a zip file, a dialog pops up in the
client's browser asking where they want to save the file. In a similar
way, I would like to accomplish the same thing, the only difference
being that the data I send back to the client doesn't come from a file
but is somehow fed back through some mechanism. I could write a
temporary file and let them download it but then I would need to come
up with another mechanism to delete the file after a period of time
(hours or days) since the file really was only meant to be temporary
and I don't want temporary files accumulating on my server. The web app
is such that the client posts a file, the app reads the content of the
file (without it getting stored on the server), performs some
calculations on the data, and then at this point should return the
calculations. I want the calculatoins however to get stored on the
client's side as a file.
such a way that it appears to the client that a file is being returned.
As you know, when you click on a link on some web pages that have a
hyperlink to a file such as a zip file, a dialog pops up in the
client's browser asking where they want to save the file. In a similar
way, I would like to accomplish the same thing, the only difference
being that the data I send back to the client doesn't come from a file
but is somehow fed back through some mechanism. I could write a
temporary file and let them download it but then I would need to come
up with another mechanism to delete the file after a period of time
(hours or days) since the file really was only meant to be temporary
and I don't want temporary files accumulating on my server. The web app
is such that the client posts a file, the app reads the content of the
file (without it getting stored on the server), performs some
calculations on the data, and then at this point should return the
calculations. I want the calculatoins however to get stored on the
client's side as a file.