string pq\LOB::read([int $length = 0x1000[, int &$read = NULL]])

Read a string of data from the current position of the large object.

Params:

Returns:

Throws:

Example:


<?php

$connection 
= new pq\Connection;
$transaction = new pq\Transaction($connection);

$data = $tansaction->openLOB(123)->read(100, $read);

printf("Read %d bytes: '%s'\n", $read, $data);

?>