I get the error : OIP-04908: This operation is not permitted on a Null LOB when Set MyClOB_0 = lOraDynaset_0.Fields("FILE_BODY").Value lOraDynaset_0.Edit amount_written = MyClOB_0.Write(buffer, chunksize, ORALOB_FIRST_PIECE)
+1
A:
I've just had the same problem when trying to insert into an Oracle CLOB field.
I got around it by:
- Setting the Oracle field to 'Empty' (the VB6 keyword Empty - e.g. MyClOB_0.Value = Empty)
- Performing the insert (e.g. lOraDynaset_0.Update)
- Editing the dynaset record (e.g. lOraDynaset_0.Edit)
- Setting the Clob field value to what you want it
- Performing the update (e.g. lOraDynaset_0.Update)
Hope this helps (sorry if its not clear)
ChrisM
2010-03-19 01:46:16
No idea what you're talking about, but you deserve an upvote.
Potatoswatter
2010-03-19 01:49:26