Re: [PHP] storing files in database and retriving them

[email protected] (Nilesh Govindarajan)
Newsgroups php.general
Message-ID <[email protected]>
Dude! I found the bug probably, you're using fopen() in 'r' mode which
is meant to read ASCII text. Since PDF is a binary file (probably?),
you should use binary mode. Try with mode = 'rb' in fopen().

-- 
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
VPS Hosting: http://www.itech7.com/a/vps
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.