pg_loimport

(PHP4 >= 4.0.1)

pg_loimport -- Import a large object from file

Description

int pg_loimport (int file [, int connection_id])

The filename argument specifies the pathname of the file to be imported as a large object. Returns FALSE if an error occurred, object id of the just created large object otherwise. Remember that handling large objects in PostgreSQL must happen inside a transaction.