From: Aaron Bono <postgresql@aranya.com>
To: Penchalaiah P. <penchalaiahp@infics.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem while using lo_import and lo_export
Date: Wed, 2 Aug 2006 19:09:09 -0500
Message-ID: <bf05e51c0608021709o6f7594d0j12e1f161dcecc71e@mail.gmail.com> (raw)
In-Reply-To: <A70AE049E81A6A40879D5DC0AC8C38C906D5318E@venus.infics.com>
References: <A70AE049E81A6A40879D5DC0AC8C38C906D5318E@venus.infics.com>
On 8/2/06, Penchalaiah P. <penchalaiahp@infics.com> wrote:
>
> Hi,
>
>
>
> I have PostgresSQL database connection from server. Server ip is
> 172.16.5.179
>
>
>
> Now I want use lo_import and lo_export function for storing images into
> the database.
>
>
>
> This images is located in my system itself.
>
>
>
> When I am going using the following query…
>
>
>
> Insert into image
> values('chanukya',lo_import('D:/Vivek/Personal/PICS/IN/chanukya.jpg'))
>
>
>
> ….it rises error 'no such file or directory'
>
Looks like you are running on a Windows machine. Did you try:
Insert into image
values('chanukya',lo_import('D:\Vivek\Personal\PICS\IN\chanukya.jpg'));
Windows uses \, not /. I am not sure if PostgreSQL will translate for you
like Java does.
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
==================================================================
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgresql@aranya.com, penchalaiahp@infics.com
Subject: Re: Problem while using lo_import and lo_export
In-Reply-To: <bf05e51c0608021709o6f7594d0j12e1f161dcecc71e@mail.gmail.com>
* 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