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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LOB Classes and Methods<br />

}<br />

if(bfile.fileExists())<br />

{<br />

unsigned int length=bfile.length();<br />

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

bfile.read(length, buffer, length, 1);<br />

//read all the contents of the BFILE into buffer, then process<br />

.<br />

.<br />

.<br />

delete[] buffer;<br />

}<br />

else<br />

cerr getBlob(1);<br />

if(blob.isNull())<br />

cerr

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

Saved successfully!

Ooh no, something went wrong!