Hi,
I was wondering if anyone can help me with my problem.
I have written an ASP script that takes the URL parameters and does some 'validation' and then if a specific set of conditions are true it then returns a MIME message containing a large (42MB) binary file however there are problems in returning large amounts of data from script.
Since IIS is designed to serve files directly to callers it seemed that it makes sense to allow IIS to deliver the files. i.e. supply a URL directly to the file on the IIS server however the problem is that we only want the file to be downloadable if the parameters on the ASP request were valid.
Is there any way we could only allow IIS to provide the file download when our code reports a specific set of conditions are true? i.e. the ASP call performs a kind of 'Authenticate' allowing the file to be successfully downloaded.
The other approach i did think about if this was not possible was to create a dynamic URL to the file in the ASP script and send it out to the client who could then download the binary using the URL. Once the file had been downloaded the dynamic URL would be invalidated meaning it wasn't available for everyone to download. Possible ways i thought of doing this were dynamic URL rewrite rules or symbolic linked files.
Does anyone have any suggestions?
Thanks in advance,
Kevin