storing files in postgres - Mailing list pgsql-general

From Bob Powell
Subject storing files in postgres
Date
Msg-id s24be720.093@grpwise.hotchkiss.org
Whole thread Raw
Responses Re: storing files in postgres
List pgsql-general
Hello everyone,
 
I have created a table as follows:
 
CREATE TABLE document (
image_id int,
image bytea
);
 
I want to insert a complete file, let's say an open office document into this table.  Anyone know how I would doe this?
 
Then if I can get the document into the image field, how would I retrieve it to display it in my HTML document?  
 
Thanks in advance.

Bob Powell
Database Administrator

pgsql-general by date:

Previous
From: Patrick.FICHE@AQSACOM.COM
Date:
Subject: Re: Temporary Tables
Next
From: Bruno Wolff III
Date:
Subject: Re: Days in month query