SQLiteBLOB.ReadError

From Xojo Documentation

Method

SQLiteBlob.ReadError() As Boolean

Supported for all project types and targets.

Indicates if there was an error reading from the BLOB.

Example

This example reads the Logo (stored as a binary picture) from the Logo column for rowID = 1 in the Team table:

Var blob As SQLiteBlob
blob = db.OpenBlob("Team", "Logo", 1, True)
If blob <> Nil Then
Var data As String
While Not blob.EOF
data = data + blob.Read(1000)
If blob.ReadError Then
MsgBox("Error reading from BLOB.")
Exit While
End If
Wend
blob.Close
// Do something with the data
End If