Re: storing files in database and retriving them
| From: | Nilesh Govindarajan | Date: | Tue, 27 Jul 2010 16:35:56 +0000 |
| Subject: | Re: storing files in database and retriving them | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307177@lists.php.net to get a copy of this message | ||
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