PostgreSQLLargeObject.Read

From Xojo Documentation

Method

PostgreSQLLargeObject.Read(count As Integer) As String

Supported for all project types and targets.

Reads Count bytes from the large object and returns them as a String.

Example

Read the data in a large object:

// db is a previously connected PostgreSQLDatabase
// objectID is an integer referring to a previously created large object
Var largeObject As PostgreSQLLargeObject
largeObject = db.OpenLargeObject(objectID)

Var data As String = largeObject.Read(largeObject.Length)