I have PDF files in a directory that do not havs read permission. Is there
any way I can read this pdf files and stream it out..
I have tried these options
(1)Using ASP Upload componenet upload.sendBinary() but Server
administrator has disabled sendBinary() method of ASP upload
(2) using ADO Stream Object
Dim objStream : Set objStream = Server.CreateObject("ADODB.Stream")
'Open a PDF file
objStream.Type = 1
objStream.Open
objStream.LoadFromFile "D:\webs\eas110\webroot\data\pdffiles" &
Request.QueryString("filename")
'Output the contents of the stream object
Response.ContentType = "application/pdf"
Response.BinaryWrite objStream.Read
'Clean up....
objStream.Close : Set objStream = Nothing
This gives an error files could not be opened.
Any help on this ..?