Received: from gateway.visgen.com (gateway2.visgen.com [216.94.71.2]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA04922 for ; Fri, 12 Nov 1999 14:32:18 -0500 (EST) (envelope-from dorin@visgen.com) Received: (from operator@localhost) by gateway.visgen.com (8.7.5/8.6.12) id OAA13229 for ; Fri, 12 Nov 1999 14:33:11 -0500 (EST) Received: from blender(10.1.2.2) by gatekeeper-0.visgen.com via smap (V2.0beta) id xma013223; Fri, 12 Nov 99 14:33:00 -0500 Received: from dorin (bay-auto-121 [10.1.18.121]) by blender.visgen.com (8.7.5/8.6.12-vgi-mailhost) with ESMTP id OAA06975 for ; Fri, 12 Nov 1999 14:33:00 -0500 (EST) Message-Id: <4.2.0.58.19991112141528.00a56e60@pophost> X-Sender: dorin@pophost X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Fri, 12 Nov 1999 14:33:21 -0600 To: pgsql-interfaces@postgresql.org From: Dorin Grunberg Subject: Problem with Large Objects Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed I am trying to recreate the example from the Postgresql manual using Perl and DBI. I was able to insert the image 'inside' the table. I checked the /tmp directory to see if it is there. When I run the following lines I get the output an "1" my $sth = $dbh->prepare_cached(qq{SELECT lo_export(image.file, '/tmp/Patti.jpg') from image WHERE name='picture'}) || die "Can't prepare statement: $DBI::errstr"; my $rc = $sth->execute || die "Can't execute statement: $DBI::errstr"; while (($picture) = $sth->fetchrow_array() ) { print $picture; } What am I doing wrong here?