In one of my asp.net web applications I need to hide the location of a pdf file being served to the users.
Thus, I am writing a method that retrieves its binary con
I've got something similar working on a current 2.0 web site. And I remember struggling to get it to work though it's been a while so I don't remember the struggles.
There are, though, a few differences between what I have what you have. Hopefully these will help you solve the problem.
And, one other thing, check your contentType value to make sure it is correct for PDFs (("Application/pdf").