Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

When taking BLOB file, it showing file is corrupted.

689761Apr 28 2009
hi,
I am using JDEVELOPER 11g.
I have a problem while taking back BLOB file. when i reading the file ,it show ing file corrupted error.

save to db using this code ,
fblob=BLOB.createTemporary(con,false,BLOB.DURATION_SESSION);
if (blobAttachment.getLength()>(50*1024) )
IOUtils.copy(bin,fblob.setBinaryStream(blobAttachment.getLength()));
else
LobUtils.doMakeBlob(bin,fblob.setBinaryStream(blobAttachment.getLength()));

I am making use of viewobject to read from Db.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2009
Added on Apr 28 2009
0 comments
484 views