Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual NdbBlob::writeData()

Description.  This method is used to write data to an NdbBlob. After a successful invocation, the read/write position will be at the first byte following the data that was written to the blob.


A write past the current end of the blob data extends the blob automatically.


int writeData
      const void*  data,
      Uint32       bytes

Parameters.  This method takes two parameters, a pointer to the data to be written, and the number of bytes to write.

Return value.  0 on success, -1 on failure.