Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Tutorial/Example of Insert/Select PDF Postgres DB ?



ben wilko wrote:
Hi Guys

I am looking for an examples on how to insert a PDF file into Postgres DB and also selecting it so that someone can download it from a page.

You would be much better off storing the path to the file (or just the filename) in the database, leaving the file itself on the filesystem and password protecting the downloads folder with a .htaccess file or something.

You could then have something like download.php?file=filename.txt and go from there (it would use fpassthru to just spit the file out to the browser etc)..

--
Postgresql & php tutorials
http://www.designmagick.com/



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group