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

