certificate string as file on client?
-
Hi, We have the following problem. On the server, we have a large string. This string, should be downloaded by the user, as a seperate file. For performance reasons, we can't create a file on the server, containing the string, that the user could download. The string has to be sent to the client and from there be saved as a file. Can anyone give a hint on an elegant solution to this problem? Cheers, henrik Henrik Sternberg, Cambridge Technolgy Partners, Germany www.ctp.com/ce henrik.sternberg@ctp.com
-
Hi, We have the following problem. On the server, we have a large string. This string, should be downloaded by the user, as a seperate file. For performance reasons, we can't create a file on the server, containing the string, that the user could download. The string has to be sent to the client and from there be saved as a file. Can anyone give a hint on an elegant solution to this problem? Cheers, henrik Henrik Sternberg, Cambridge Technolgy Partners, Germany www.ctp.com/ce henrik.sternberg@ctp.com
Henrik Sternberg wrote: Can anyone give a hint on an elegant solution to this problem? Yes: Create an ASP page with this code:
Response.Expires = -1
Response.ContentType = "aplication/plain"
Response.AddHeader "content-disposition", "attachment; filename=yourfile.txt"Response.Write yourlongstring
And IE will start the download process with yourfile.txt as the default filename.
It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)