Thread: Displaying PDFs
View Single Post
Old 08-01-2004, 04:50 PM  
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally posted by KobyBoy
I've got a peculiar problem. On one of my sites users have an option to look at PDF documents. I have a PHP file that does a "Content-type: application/pdf" before sending any HTML to the browser and then connects to the database and reads the PDF file from there (as you can tell I store all the PDFs in the database). For some reason when I request a PDF file from IE I actually get the binary data of the PDF displayed in the browser. When I use FireFox the Acrobat Reader Plug-In kicks in and the PDF document gets displayed correctly inside the Acrobat Reader Plug-In. Any idea on how to fix this issue so it will work correctly with IE ?
It should work the way just described... Your IE settings may be messed up, or IE cached the old header, so maybe try clearing the cache, and restarting IE?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote