10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Blob Class<br />

setNull()<br />

trim()<br />

write()<br />

Syntax<br />

void setEmpty(const Connection* connectionp);<br />

Parameters<br />

connectionp<br />

The new connection pointer for the Blob object.<br />

This method sets the Blob object to atomically null.<br />

Syntax<br />

void setNull();<br />

This method truncates the BLOB to the new length specified.<br />

Syntax<br />

void trim(unsigned int newlen);<br />

Parameters<br />

newlen<br />

The new length of the BLOB.<br />

Valid values are:<br />

Numbers less than or equal to the current length of the BLOB.<br />

This method writes data from a buffer into a BLOB. This method implicitly opens<br />

the BLOB, copies the buffer into the BLOB, and implicitly closes the BLOB. If the<br />

BLOB is already open, use writeChunk() instead. The actual number of bytes<br />

written is returned.<br />

Syntax<br />

unsigned int write(unsigned int amt,<br />

unsigned char *buffer,<br />

8-20 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!