X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 429DD14B292E for ; Thu, 12 Aug 2004 11:35:15 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28115-05 for ; Thu, 12 Aug 2004 14:35:10 +0000 (GMT) Received: from oscar.sybex.com (oscar.sybex.com [63.86.158.35]) by svr1.postgresql.org (Postfix) with SMTP id 2780D14B2921 for ; Thu, 12 Aug 2004 11:35:06 -0300 (ADT) Received: from bert.sybex.com by oscar.sybex.com via smtpd (for svr1.postgresql.org [200.46.204.71]) with SMTP; 12 Aug 2004 14:35:12 UT In-Reply-To: Subject: Re: blob size after pg_lo_open To: pgsql-php@postgresql.org X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Thom Dyson Date: Thu, 12 Aug 2004 07:35:09 -0700 X-MIMETrack: Serialize by Router on Bert/Sybex(Release 6.5|September 18, 2003) at 08/12/2004 07:35:15 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/21 X-Sequence-Number: 2909 Thanks. Glad I wasn't missing anything obvious. I need content length so that browsers get a progress meter. Working on an application to sell downloads around 2 - 4 Mb. Thom Dyson Director of Information Services Sybex, Inc. pgsql-php-owner@postgresql.org wrote on 08/11/2004 06:13:21 PM: > TDyson@sybex.com wrote: I've tried using PHP's fstat to return the size, but I think the > > object returned by pg_lo_open is not suitable. > No, you can't use fstat() on a large object handle. > I've hardly ever bothered with Content-length. There is probably some > advantage to using it but I don't know what it might be.