Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Why setClob() and setBlob()?
Hi,
After reading "Working with BLOBs and CLOBs" in "Oracle8i JDBC Developer's Guide and Reference Release 2 (8.1.6)" <http://oradoc.photo.net/ora816/java.816/a81354/oralob2.htm#1043220> I understand that you can't create or populate a BLOB or CLOB column and that you have to use them with a locator.
So I see the use of getBlob() and getClob() methode to get CLOB or BLOB
locator but I don't see setBlob() and setClob() use due to the fact that
you update a CLOB or BLOB data by getting its locator and by writing
data in as in this Oracle example:
...
writer = ((CLOB)my_clob).getCharacterOutputStream();
writer.write(data); writer.flush(); writer.close();
Maybe I missunderstood the use of setClob() and setBlob()... Is there anybody to help me?
Julien Reynier Received on Wed Feb 28 2001 - 17:25:43 CST
![]() |
![]() |