jsteiner87
Programmer
I am trying to save PDF files in a database. I have made an upload page with PHP and interface the database with SQLyog to do the design and other things as well. When I upload my file using my upload page it uploads everything just fine (images, excel files, and pdf files). However when I try to download them via another php page everything works but the PDF files are corrupted somehow.
The error I get in Adobe PDF: "There was an error opening this document. The file cannot be found"
I then try and get the files thru SQLyog and the same problem. Right now I have them being saved in a longblob. Is this the right data type? Why would everything work but PDF files?
MySQL Version 4.1.16
The error I get in Adobe PDF: "There was an error opening this document. The file cannot be found"
I then try and get the files thru SQLyog and the same problem. Right now I have them being saved in a longblob. Is this the right data type? Why would everything work but PDF files?
MySQL Version 4.1.16