PostgreSQLLargeObject.Write

From Xojo Documentation

Method

PostgreSQLLargeObject.Write(data As String)

Supported for all project types and targets.

Writes Data to the large object.

Example

Writes data to a large object:

// db is a previously connected PostgreSQLDatabase
// objectID is identifies a previously created large object

Var largeObject As PostgreSQLLargeObject
largeObject = db.OpenLargeObject(objectID)

Var data As String = "misc data"

Try
largeObject.Write(data)
Catch error As DatabaseException
MessageBox("DB Error: " + error.Message)
End Try