From: Peter T Mount <peter@retep.org.uk>
To: shekhar@easi.soft.net, Som <shekhar@easi.soft.net>
Cc: Queries <pgsql-sql@postgresql.org>
Subject: Re: Image insertion by using BLOB
Date: Thu, 01 Feb 2001 04:09:05 -0500 (EST)
Message-ID: <981018545.3a7927b14ddcf@webmail.retep.org.uk> (raw)
In-Reply-To: <3A77F4EA.A3BC14A8@easi.soft.net>
References: <3A77F4EA.A3BC14A8@easi.soft.net>
Quoting Som <shekhar@easi.soft.net>:
> Hi ALL,
> I am trying to insert the image from the client to database by
> spicifying the Windows NT machine filepath.
> The server(postgresql 7.0) is situated at the linux.
> If filepath is linux m/c's then i can ...
> If filepath is winNT then i have Exception saying :
>
> ERROR: lo_import : ca't open unix file "/jigsaw/jigsaw/www/som.gif "
> No such file or directory
>
> Query is as follows::
> insert into tablename values('som', lo_import('PATH'));
lo_import only works on the servers filesystem.
>
> If possible , how ?
You need to use the fastpath/largeobject api's to send the image over the
network connection.
There's 2 C & 1 Java examples included in the source showing this.
Peter
>
>
> -som
>
>
>
>
>
>
>
>
>
>
>
>
>
--
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: peter@retep.org.uk, shekhar@easi.soft.net
Subject: Re: Image insertion by using BLOB
In-Reply-To: <981018545.3a7927b14ddcf@webmail.retep.org.uk>
References: <3A77F4EA.A3BC14A8@easi.soft.net> <981018545.3a7927b14ddcf@webmail.retep.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox