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@xxxxxxxxxxxxxx wrote on 08/11/2004 06:13:21 PM: > TDyson@xxxxxxxxx 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.