From: Misa Simic <misa.simic@gmail.com>
To: Hariraman Jayaraj <hariraman.ocp@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Reg: Insert bytea values in to table
Date: Fri, 6 Jan 2012 00:39:21 -0800
Message-ID: <-4544684390160500629@unknownmsgid> (raw)
Hi
INSERT INTO table( pdffile) VALUES
(pg_readbinary_file('path_to_pdffile_on_server'))
Sent from my Windows Phone
------------------------------
From: Hariraman Jayaraj
Sent: 06/01/2012 08:04
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Reg: Insert bytea values in to table
Hi,
Postgres Version - 8.3
OS - Suse Linux 11 Enterprise Edition
I have a requirement to store pdf files in db. I am suggested to use bytea
data type to achieve this.
I am having an table *ledger* with columns *
id bigint,
pdffile bytea
*I want to store the pdf files in the pdffile column.
Kindly suggest me how to do this.
Thanks in advance.
--
Regards,
Hariraman Jayaraj
Mobile - 9786228845
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: misa.simic@gmail.com, hariraman.ocp@gmail.com
Subject: Re: Reg: Insert bytea values in to table
In-Reply-To: <-4544684390160500629@unknownmsgid>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox