Image Insert Postgresql DB - Mailing list pgsql-sql

From sreejith s
Subject Image Insert Postgresql DB
Date
Msg-id 5d14ecf904112220214ec08992@mail.gmail.com
Whole thread Raw
Responses Re: Image Insert Postgresql DB  ("Vishal Kashyap @ [SaiHertz]" <vishalonlist@gmail.com>)
Re: Image Insert Postgresql DB  (Kenneth Gonsalves <lawgon@thenilgiris.com>)
List pgsql-sql
Hello I have a doubt regarding Image insert into Postgres DB.
Yesterday i posted a query regarding this. and this one is in
continuation.
I am working on Project with Linux Server and Windows Client
environment. And v r developing windows based application.
V have to scan images from scanner attched to the client machine and
these images r to be inserted into postgres db. Data type for Image
field in the DB is OID.
copy of Image file actually resides in the client. V have to insert
this image into the DB.

Query to insert
----------------
INSERT INTO Imagetable VALUES (lo_import('C:\\image\\peach.jpg')); 

here the path specified is the image path at client. But its doesn't
work. Since it is not
possible set the querys path to a remote machine.

How i can insert the image into the DB at linux machine where the
image file resides in the client machine.
pls reply

Sreejith


pgsql-sql by date:

Previous
From: Pierre-Frédéric Caillaud
Date:
Subject: Re: Recursive SETOF function
Next
From: "Vishal Kashyap @ [SaiHertz]"
Date:
Subject: Re: Image Insert Postgresql DB