Re: binary data storage

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: binary data storage
Дата
Msg-id 20020404113406.765b985e.nconway@klamath.dyndns.org
обсуждение исходный текст
Ответ на Re: binary data storage  ("Marin Dimitrov" <marin.dimitrov@sirma.bg>)
Список 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 по дате отправления:

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: binary data storage
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: Problem with factorial operator