Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting to PDF that resides on another http server

Status
Not open for further replies.

wendigt

Programmer
Dec 17, 2002
7
US
Is it possible to redirect to a PDF that resides on another web server?

In previous threads, I've seen examples of using ADODB.Stream objects to read and write binary data. I get errors when I attempt to LoadFromFile. I think this is due to the file not being on disk, rather on another web server..."
Do I need to upload the file locally before sending binary data to the web browser? If so, is this something only 3rd party objects can do for me?

Thanks for any input,
Wendi
 
Unfortunately no.

The web user clicks a link on one server, which redirects them to another server, asking for them to fill out a form of personal information, then redirects them to the first server and the pdf. This is a Response.Redirect, not a hyperlink.

 
Then just use Response.Redirect "
The only time you really need to binary write a PDF document is if it a) is stored in a bionary field in a db
or b) is confidential-ish and you want to protect the name of the file by loading it into the asp page instead.

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
No more vacation for me :(

FAQ FAQ20-2863
= new Forums.Posting.General.GettingAnswers()
 
I use

Response.Redirect "
My asp looks for cookies. If my cookies are present, then I read the cookies, create a database item logging the cookie values, then automatically redirect to the pdf. It works here, I see the pdf displayed.
If cookies are not present, then the form does not redirect, but loads, asking for user information. Once the user submits the form, then these field values are read, ad a database item is created logging these values, then automatically redirecting to the pdf. It does NOT work here, the pdf url is in the Address field of the browser, but the page is blank and says "Done" in the status bar.

Any thoughts?

Wendi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top