SqliteBlob object can't be created directly. Use SQLight blobOpen connection method for this. This object provides interface for reading and writing Bytes data to/from opened BLOB.


Created SqliteBlob object has methods:

size()

Return bytes size of opened blob field


close()

Close opened blob field


write(data, size, dataPos, blobPos)

Writes data with specific size and dataPos offset to blobPos position.

data - Bytes data for writing to BLOB field

size - bytes length, int 

dataPos - offset position in data, int

blobPos - position in BLOB field, int 

read(data, size, dataPos, blobPos)

Reads bytes from BLOB field to data with requested size from blobPos to dataPos offset position.

data - Bytes data for reading from BLOB field

size - requested bytes length for reading from BLOB, int

dataPos - offset position in data, int

blobPos - position in BLOB field


NOTE: read and write method can't change BLOB field size. It will be error for any out of range operations!

Created with the Personal Edition of HelpNDoc: Free help authoring tool