From: sandhya <sandhyar@amiindia.co.in>
To: Bruno Wolff III <bruno@wolff.to>
Cc: postgre <pgsql-admin@postgresql.org>
Subject: Re: reg:Import&Export functions
Date: Fri, 16 Dec 2005 13:46:56 +0530
Message-ID: <013e01c60219$14c54b70$cd00000a@amiindiahjwbgh> (raw)
References: <00d101c60139$f357d0a0$cd00000a@amiindiahjwbgh>
<20051216042337.GA29958@wolff.to>
hi.....
I copied it using file streams.It worked fine for Linux even for
the remote Client.
But facing problems in Windows OS.I think it is not able to understand the
OID that we are passing.
It is giving error while opening the large object.
In Windows application how can i pass the large objects.
export(conn,objid,"c://home.htm");
Inside this function i am using
lobj_fd = lo_open(conn, lobjId, INV_READ);
if (lobj_fd < 0)
{
MessageBox(0,lobjId, "can't open large object",MB_OK);
}
It is displaying Can't open large object.......also it is not getting the
value of "lobjId".
I am new to postgres also this .net stuff.Pls help me to proceed further.
Thank you
Sandhya
----- Original Message -----
From: "Bruno Wolff III" <bruno@wolff.to>
To: "sandhya" <sandhyar@amiindia.co.in>
Cc: "postgre" <pgsql-admin@postgresql.org>
Sent: Friday, December 16, 2005 9:53 AM
Subject: Re: [ADMIN] reg:Import&Export functions
> On Thu, Dec 15, 2005 at 11:09:43 +0530,
> sandhya <sandhyar@amiindia.co.in> wrote:
> > Hi all,
> >
> > I have my postgres server running on Linux OS.
> > I need to export the files from the Linux OS to Windows drive.
> > Is there any possibilty of doing this?
>
> Can you explain this in some more detail? Exporting files from linux to
> windows doesn't seem to have anything to do with Postgres. You would
> use samba to do that.
>
> > I am connecting to DB through my VC 7Application.
> > In that i need to export the files from the DB to the local machine
where i am running the application.Is it possible to do that?
> > Please tell me what to do in that case....
> >
> > Thank you
> > Sandhya
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
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-admin@postgresql.org
Cc: sandhyar@amiindia.co.in, bruno@wolff.to
Subject: Re: reg:Import&Export functions
In-Reply-To: <013e01c60219$14c54b70$cd00000a@amiindiahjwbgh>
References: <00d101c60139$f357d0a0$cd00000a@amiindiahjwbgh> <20051216042337.GA29958@wolff.to> <013e01c60219$14c54b70$cd00000a@amiindiahjwbgh>
* 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