| Home | How To | Online Documentation | Support | Download | Order |
|
|
void ReadLongOrLob(
saLongOrLobReader_t fnReader , unsigned int
nReaderWantedPieceSize , void *pAddlData ); Starts reading of Long or BLob(CLob) value using user defined callback. ParametersfnReader. The name of user function used for Long or BLob(CLob) data reading. The function must have syntax declared by saLongOrLobReader_t typedef . nReaderWantedPieceSize. Size of piece of data user want to get to callback function. pAddData. Additional data, passed to callback function. RemarksWhen you call SACommand::FetchNext method (after a command execution) all fields are updated by their values, including Long and BLob(CLob) fields. If you want to control piecewise reading of Long or BLob(CLob) data you should do the following:
ReadLongOrLob method will repeatedly call user defined function: void <function Name>(SAPieceType_t ePieceType, User defined function has the following parameters: ePieceType. Parameter passed to the function from SQLAPI++ Library mechanisms. It defines which piece of data value was read. Can be one of the next SAPieceType_t enum values:
pBuf. Pointer to the buffer that contains the data block read from database. nLen. The actual size of data in buffer pBuf. nBlobSize. Maximum size of whole Long or BLob(CLob) field (if DBMS server allows to know it before whole field was read; otherwise 0). pAddData. An additional data user want to pass to the function. To get more information about reading Long and BLob(CLob) data see Query examples - Step 6. Server specific notesNo specific information. See alsoSACommand, saLongOrLobReader_t, SAPieceType_t Error handling, Query examples Problems and QuestionsIf you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com. |
|||||||||||||||||||