Wrox Home  
Search P2P Archive for: Go

  Return to Index  

security_asp thread: File Access


Message #1 by "craig dunn" <craig_d73@h...> on Tue, 31 Jul 2001 19:22:04
Hi

I have created an Access database with a field called FileData which is of 
the type OLE Object.  I then put an exe into the field using Access.

My ASP code should then download the file using this code:

Response.ContentType = "application/octet-stream"
Response.BinaryWrite objRS("FileData")

The code displays the normal download dialog and seems to download the 
file correctly.  However, when the file is downloaded it does not have the 
correct icon nor will it run.

Im doing this so only authorized users can download the file.  Does anyone 
know how to do it differently?  Or how to make the above work?

Thanks

  Return to Index