pg_lowrite

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_lowrite -- Write a large object

Description

int pg_lowrite (resource large_object, string data)

pg_lowrite() writes at most to a large object from a variable data and returns the number of bytes actually written, or FALSE in the case of an error. large_object is a large object resource from pg_loopen().

To use the large object (lo) interface, it is necessary to enclose it within a transaction block.

See also pg_locreate() and pg_loopen().