X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3665C9DDF63 for ; Mon, 26 Dec 2005 07:08:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17769-02-5 for ; Mon, 26 Dec 2005 06:08:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from venus.amiindia.co.in (unknown [203.199.198.234]) by postgresql.org (Postfix) with ESMTP id 582849DDD0B for ; Mon, 26 Dec 2005 04:56:22 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by venus.amiindia.co.in (8.12.11/8.12.11) with SMTP id jBQ8oxEP003123 for ; Mon, 26 Dec 2005 14:21:01 +0530 Received: from amiindiahjwbgh (unknown [10.0.0.205])by venus.amiindia.co.in (Postfix) with ESMTP id 98BC8332828; Mon, 26 Dec 2005 14:14:56 +0530 (IST) Message-ID: <013501c609fa$57b48480$cd00000a@amiindiahjwbgh> From: "sandhya" To: "postgre" Cc: "sandhya" Subject: reg:lseek&read ..pls Date: Mon, 26 Dec 2005 14:27:04 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0132_01C60A28.714FC2A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-imss-version: 2.5 X-imss-result: Passed X-imss-scores: Clean:92.46537 C:21 M:1 S:5 R:5 X-imss-settings: Baseline:5 C:3 M:3 S:4 R:3 (0.2500 0.7500) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.023 required=5 tests=[AWL=0.021, HTML_MESSAGE=0.001, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.023 X-Spam-Level: X-Archive-Number: 200512/306 X-Sequence-Number: 20026 This is a multi-part message in MIME format. ------=_NextPart_000_0132_01C60A28.714FC2A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_0132_01C60A28.714FC2A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi......
 
I stored few files into the database = and trying to=20 open it while accessing webserver...
In that case i need to just read the = contents of=20 the large object.
So...After importing all the files into = the=20 database i am trying to read the contents of the object.
But before that i need to know the size = of the=20 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=20 document.
Here i am mentioning the Oid and start = as 0 and len=20 as 2000.....But i am unable to get the whole contents of the = file.
If i want to get entire file = contents...How to=20 do?
What len i need to = specify?
Is there any thing to know the size of = the=20 object?
Please tell = me..............
 
Thank you
-Sandhya
------=_NextPart_000_0132_01C60A28.714FC2A0--