Home > PHP > Function > PostgreSQL > pg_lo_read()

pg_lo_read()

pg_lo_read - Read a large object

Syntax

string pg_lo_read (resource $large_object, int $len)

Arguments

  • large_object - PostgreSQL large object (LOB) resource, returned by pg_lo_open().
  • len - An optional maximum number of bytes to return.

Description

pg_lo_read() reads at most len bytes from a large object and returns it as a string.

Version

PHP 4.2.0, 5

Return value

A string containing len bytes from the large object, or FALSE on error.