1 # string pq\LOB::read([int $length = 0x1000[, int &$read = NULL]])
3 Read a string of data from the current position of the *large object*.
7 * Optional int $length = 0x1000
8 The amount of bytes to read from the *large object*.
9 * Optional int &$read = NULL
10 The amount of bytes actually read from the *large object*.
14 * string, the data read.
18 * pq\Exception\InvalidArgumentException
19 * pq\Exception\BadMethodCallException
20 * pq\Exception\RuntimeException
26 $connection = new pq\Connection;
27 $transaction = new pq\Transaction($connection);
29 $data = $tansaction->openLOB(123)->read(100, $read);
31 printf("Read %d bytes: '%s'\n", $read, $data);