M
Michael
Hello,
I'm looking for a way to allow a client who clicks on a link the ability to
"adodb.stream" a multimedia file (mainly audio/wav) files, but the file they
would be accessing is outside the wwwroot (for security / traceability). I
don't want the "save as" box to open for streamable content. Basically I'm
trying to mimic the exact action, as if they had clicked a
www.mydomain.com/download.wav file, and allow the browser to open it up
automatically and save it if needed.
Here is the code I'm currently using to stream the audio file to the client.
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile "c:\outside_my_wwwroot\test.wav"
Response.ContentType = "audio/wav"
Response.BinaryWrite objStream.Read()
objStream.Close
I'm sure it can be done, I really just probably need the appropriate headers
to tag to page (I'm using the adodb.stream object ).
Can anyone help me out with this?
Thanks!
--Michael
I'm looking for a way to allow a client who clicks on a link the ability to
"adodb.stream" a multimedia file (mainly audio/wav) files, but the file they
would be accessing is outside the wwwroot (for security / traceability). I
don't want the "save as" box to open for streamable content. Basically I'm
trying to mimic the exact action, as if they had clicked a
www.mydomain.com/download.wav file, and allow the browser to open it up
automatically and save it if needed.
Here is the code I'm currently using to stream the audio file to the client.
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile "c:\outside_my_wwwroot\test.wav"
Response.ContentType = "audio/wav"
Response.BinaryWrite objStream.Read()
objStream.Close
I'm sure it can be done, I really just probably need the appropriate headers
to tag to page (I'm using the adodb.stream object ).
Can anyone help me out with this?
Thanks!
--Michael