Contents Index Inserting, updating, and deleting rows Transaction processing in UltraLite

UltraLite ActiveX User's Guide
  Understanding UltraLite ActiveX Development
    Accessing and manipulating data using the table API

Working with BLOB data


The following code fragment demonstrates how to use the ULColumn.GetByteChunk method to get BLOB data.

For more information, see GetByteChunk method.

' eMbedded Visual Basic
Dim offset As Integer
Dim nBytes As Integer
Dim chunk(1024) As Byte
ll = col.GetByteChunk( 0, chunk, 1024)
If nBytes <> 1024 Then
   ' only got nBytes bytes, expected 1024
Else
   ' have 1024 bytes
End if
// JScript
var offset;
var nBytes;
var chunk = new Array();
nBytes = col.GetByteChunk( 0, chunk, 1024);
if ( nBytes != 1024 ) {
  // only got nBytes bytes, expected 1024
} else {
  // have 1024 bytes
}

Contents Index Inserting, updating, and deleting rows Transaction processing in UltraLite