SQLiteBLOB.EOF

From Xojo Documentation

Method

SQLiteBlob.EOF() As Boolean

Supported for all project types and targets.

Indicates the end of the data has been reached when reading data 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