Re:

From: "Eric G(dot) Miller" <egm2(at)jps(dot)net>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re:
Date: 2001-02-24 08:11:15
Message-ID: 20010224001115.A4731@calico.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 23, 2001 at 04:28:40AM -0800, akif noor wrote:
>
> i have created a table having blob object but now i am
> not able to insert a picture into the table. Can you
> send me sql command to insert picture into the table i
> need syntax. i tried through DB2IMAGE but failed to
> insert.
>
> if there is any other method of putting image in the
> table, kindly send me the same
> Akif noor

Programmer's Guide::Large Objects::Built in registered functions

Built in registered functions There are two built-in registered functions, lo_import and lo_export which are convenient for use in SQL queries. Here is an example of their use CREATE TABLE image ( name text, raster oid ); INSERT INTO image (name, raster) VALUES ('beautiful image', lo_import('/etc/motd')); SELECT lo_export(image.raster, '/tmp/motd') from image WHERE name = 'beautiful image';

--
Eric G. Miller <egm2(at)jps(dot)net>

In response to

  • at 2001-02-23 12:28:40 from akif noor

Browse pgsql-general by date

  From Date Subject
Next Message Bela Lantos 2001-02-24 10:22:18 Newbie question :-)
Previous Message Wayne Ward 2001-02-24 07:36:32 Still having some install problems.