pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sandhya <sandhyar@amiindia.co.in>
To: postgre <pgsql-admin@postgresql.org>
Subject: Fw: reg:lseek&read ..pls
Date: Mon, 26 Dec 2005 16:27:49 +0530
Message-ID: <01dd01c60a0b$3644e2c0$cd00000a@amiindiahjwbgh> (raw)


----- Original Message ----- 
From: sandhya 
To: postgre 
Cc: sandhya 
Sent: Monday, December 26, 2005 2:27 PM
Subject: reg:lseek&read ..pls


hi......

I stored few files into the database and trying to open it while accessing webserver...
In that case i need to just read the contents of the large object.
So...After importing all the files into the database i am trying to read the contents of the object.
But before that i need to know the size of the object from which i am trying to get the contents.
How can i do this?

void
pickout(PGconn *conn, Oid lobjId, int start, int len)

I used the above sample one which is in postgres document.
Here i am mentioning the Oid and start as 0 and len as 2000.....But i am unable to get the whole contents of the file.
If i want to get entire file contents...How to do?
What len i need to specify?
Is there any thing to know the size of the object?
Please tell me..............

Thank you
-Sandhya

view thread (3+ messages)  latest in thread

Message-ID: <01dd01c60a0b$3644e2c0$cd00000a@amiindiahjwbgh>
Permalink:  ../01dd01c60a0b$3644e2c0$cd00000a@amiindiahjwbgh/
Also on:    postgresql.org/message-id/01dd01c60a0b$3644e2c0$cd00000a@amiindiahjwbgh

 · 

reply

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
  Subject: Re: Fw: reg:lseek&read ..pls
  In-Reply-To: <01dd01c60a0b$3644e2c0$cd00000a@amiindiahjwbgh>
  References: <01dd01c60a0b$3644e2c0$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