Re: insertiing an image file (blob) into postres... - Mailing list pgsql-general

From Daniel Schuchardt
Subject Re: insertiing an image file (blob) into postres...
Date
Msg-id ch52m0$1kug$1@news.hub.org
Whole thread Raw
In response to insertiing an image file (blob) into postres...  (Prabu Subroto <prabu_subroto@yahoo.com>)
List pgsql-general
Prabu Subroto schrieb:

> kv=# insert into salesreport (salesid, custid,
> emoicon) values('13', '4531',
> lo_import('/localhome/patrixlinux/arsip/proyek/qt/kv/client/images/1.png'));
> ERROR:  column "emoicon" is of type bytea but
> expression is of type oid

try to make a oid type column and repeat this.

CREATE TABLE test(
  ...
  emoicon    oid,
  ...
);

Daniel

pgsql-general by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: PostgreSQL 8.0.0 Beta 2 Uploaded
Next
From: Mike Nolan
Date:
Subject: beta2 not finding openssl