Re: [GENERAL] insert BLOB

From: "Nikolay Mijaylov" <nmmm(at)nmmm(dot)nu>
To: "pgsql-general" <pgsql-general(at)postgreSQL(dot)org>, "David Lanier" <david(at)mids(dot)net>
Subject: Re: [GENERAL] insert BLOB
Date: 1999-10-14 15:49:11
Message-ID: 004601bf165c$e12a20a0$ce2a18c3@skillbrokers.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

BLOb is OID

CREATE TABLE images (imagefield oid);

----- Original Message -----
From: David Lanier <david(at)mids(dot)net>
To: PGSQL-General <pgsql-general(at)postgreSQL(dot)org>
Sent: 14 Îêòîìâðè 1999 ã. 18:15
Subject: [GENERAL] insert BLOB

> I'm relatively new to Postgres.
>
> I'd like some help setting up a BLOB (binary large object) field to hold
> images, and more importantly, inserting data (images) into it. We're
using
> version 6.5.1.
>
> I tried this:
>
> CREATE TABLE images (imagefield blob);
>
> but I got an error, stating "Unable to locate type name 'blob' in catalog"
>
> Probably a better way to accomplish the same thing is to store the
graphics
> in the file system, and then simply have a column that contains the
location
> (ie http://www.domain.com/images/image1.gif), but I'd still like to know
how
> to place the image itself directly into the database.
>
> Thanks in advance for whatever help any of you can provide.
>
> David
>
>
> ************

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nikolay Mijaylov 1999-10-14 15:57:50 Fw: [GENERAL] Fw: Indexes?!?!? AGAIN!!!!
Previous Message David Lanier 1999-10-14 15:15:08 [GENERAL] insert BLOB