I have some PDF files in Tamino that I want to display to the user, but I don’t want to give the users a direct link to my database. Is there a way I can do this with ASP? I tried the following but it didn’t work.
<%
with response
.ContentType = “application/pdf”
.BinaryWrite(“http://localhost/tamino/rptdatabase/rptcollection/pdf/heather.pdf” )
.End
end with
%>
- nor did -
<%
with response
.ContentType = “application/pdf”
.write(http://localhost/tamino/reportsonline/ExposureReports/PDFExposureReports/heather.pdf)
.End
end with
%>
Thanks in advance for any help.
Heather
Just in case anyone else ever needs this, here is one way to display the non-XML files.
<%
dim wrapper
set wrapper = CreateObject(“Msxml2.ServerXMLHTTP.4.0”)
wrapper.open “GET”, “http://localhost/tamino/database/collection/schema/heather.pdf",false,“myusername”,"mypassword”
wrapper.send
Response.ContentType = “application/pdf”
Response.BinaryWrite wrapper.responseBody
set wrapper = nothing
%>