Java Programming - Problem when getting the blob image to DAO

Hi can any body help me how to get the blob data from orcale database

I am trying like this

Clob descClob = null;

descClob = rs.getClob(3);

disciplineDTO.setDisciplineDesc( descClob.getSubString(1, Integer.parseInt( ""+descClob.length() ) ) );

Here i am getting the clob data correctly

Now i want get the blob filed i.e image

Here is what i am writing the code

Blob descBlob= null;

descBlob=rs.getBlob(4);

disciplineDTO.setDisciplineImageMap(descBlob.getBinaryStream(1,InputStream(""+descBlob.length() ) ));this is incomplete...

Can any one help me in this

[629 byte] By [okrishnaa] at [2007-11-26 23:18:48]
# 1
Google for an Oracle blob tutorial that is valid for the version of Oracle that you are using. There are lots of them.Kaj
kajbja at 2007-7-10 14:21:04 > top of Java-index,Java Essentials,Java Programming...