Re: binary data storage - Mailing list pgsql-general

From Neil Conway
Subject Re: binary data storage
Date
Msg-id 20020404113406.765b985e.nconway@klamath.dyndns.org
Whole thread Raw
In response to Re: binary data storage  ("Marin Dimitrov" <marin.dimitrov@sirma.bg>)
List pgsql-general
On Thu, 4 Apr 2002 12:36:42 +0300
"Marin Dimitrov" <marin.dimitrov@sirma.bg> wrote:
>
> ----- Original Message -----
> From: "Devrim GUNDUZ"
>
> >
> > Hi,
> >
> > Let's say we have 100 MB of binary file (for example, a zip file). How
> > could we store this file in PostgreSQL? Which datatype could we use and
> > how do we insert it?
> >
>
> search for "large objects" in the Programmer's Guide

You could also use a column with datatype "bytea", and the libpq
function PQescapeBytea().

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

pgsql-general by date:

Previous
From: Doug McNaught
Date:
Subject: Re: binary data storage
Next
From: Jean-Luc Lachance
Date:
Subject: Problem with factorial operator