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.

}<br />

/**<br />

* printing the blob data as integer stream<br />

*/<br />

void dumpBlob (Blob &blob, int size)<br />

throw (SQLException)<br />

{<br />

Stream *instream = blob.getStream (1,0);<br />

char *buffer = new char[size];<br />

memset (buffer, NULL, size);<br />

instream->readBuffer (buffer, size);<br />

cout

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

Saved successfully!

Ooh no, something went wrong!