Hallo,
if you create a blob in a create table statement and you don't specifiy any
special storage attributes, the blob length is allways limited to 2000 character. Here is an example
CREATE TABLE TEST(
ID NUMBER(12),
TEST BLOB,
constraint PK_kalkdatei primary key (ID)
)
LOB (KALK) STORE AS SEGNAME (TABLESPACE testspace CHUNK 4096
PCTVERSION 5
NOCACHE LOGGING
STORAGE (MAXEXTENTS 5)
);
To insert or update the blob I use this code:
Code:
oracle.sql.BLOB blob = oracle.sql.BLOB.createTemporary(Persistence.connection(), false, oracle.sql.BLOB.DURATION_SESSION);
blob.open(oracle.sql.BLOB.MODE_READWRITE);
OutputStream out = blob.getBinaryOutputStream();
out.write(<some byte data> );
out.flush();
out.close();
blob.close();
Hope this give you some hints