I have some code that boils down to this:
strFileName = "D:\pdf\original_docs\1234.pdf"
Response.ContentType = "application/pdf"
set objBinaryFile = Server.CreateObject("BinaryFileStream.Object"
Response.BinaryWrite objBinaryFile.GetFileBytes(CStr(strFileName))
set objBinaryFile = nothing
It works GREAT as expected on one server... but we are migrating over to a new server and it is a no-go. (both servers are same version of IIS [5], same service packs, etc. -- but SOMETHING is obviously different)
File paths are correct, so other than that, what could be preventing this from working?
Thanks,
Jeremy
strFileName = "D:\pdf\original_docs\1234.pdf"
Response.ContentType = "application/pdf"
set objBinaryFile = Server.CreateObject("BinaryFileStream.Object"
Response.BinaryWrite objBinaryFile.GetFileBytes(CStr(strFileName))
set objBinaryFile = nothing
It works GREAT as expected on one server... but we are migrating over to a new server and it is a no-go. (both servers are same version of IIS [5], same service packs, etc. -- but SOMETHING is obviously different)
File paths are correct, so other than that, what could be preventing this from working?
Thanks,
Jeremy