When taking BLOB file, it showing file is corrupted.
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.