The code I use is this:
$paper_row = pg_Fetch_row($paper, 0); @pg_Exec($conn,"begin"); $image_oid=$paper_row[0]; $fh=@pg_loopen($conn,$image_oid,"r"); @pg_loreadall($fh); @Pg_loClose ($fh); @pg_exec("commit");
Thanks for your attention.
Best regards.
--
Luis Martins
Eng. Sistemas e Computacao
Servicos de Informatica
Universidade do Algarve