I am trying to secure .pdf files by having users login and based on UserID, allow access to certaing .pdf's.
I have tried it a few different ways using different file types and their corresponding contenttype and nothing happens. I even used the same example from microsoft.com and I get "page cannot be displayed" . Please help:
BTW, i am using .asp (not asp.net)
here is my code
Response.ContentType = "application/pdf"
Const adTypeBinary = 1
strFilePath = "test.pdf" 'This is the path to the file on disk.
Set objStream = Server.CreateObject("ADODB.stream")
objStream.Type = adTypeBinary