I agree with the people that stated that storing the pdf file in the database is probable not the best idea. When I workd for a online newspaper I was given an assinment of comming up with a way to store, large in my case, PDF files. I oped out of storing them into the database due to the size of the files and the amount of request there would be for the file. So this is what I did.
1. I created a unique filename for the PDF file.
2. Zip up the PDF file and stored it an a secure location on the server under the new unique filename.
3. Entered the name of the zipped file into the database alonge with all the file characteristics for easy searching.
When someone needed the file, the retrival program woulud unzip it in a tmp directory and upload it to the user then delete the temp file. This saved me space in the db and on the server itself. All I had to due was makesure that the directory with the ziped files where backedup at the same time as the database and all was good in life.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.