Sybase JDBC drivers do no support blobs. So you'll have to read blobs as binary data.
You can do that by implementing UserType for binary blobs. There's an example of that in the design patterns area
http://www.hibernate.org/73.html.
Read the data as binary instead of blob.
Code:
public Object nullSafeGet(ResultSet rs, String[] names, Object owner)
throws HibernateException, SQLException
{
byte[] data = rs.getBinary(names[0]);
return data;
}
Your mapping file should poin to this new type
Code:
<property name="toffRec1" column="toff_rec1" type="MyBinaryBlob" length="255" not-null="true"/>
Another issue to keep in mind is to use jConnect6.0 sybase drivers with com.sybase.jdbc3.jdbc.SybDriver
jConnect5.5 and older drivers can read only upto 255 bytes of binary data. If your blob has more than 255 bytes, use jConnect6.0 jdbc driver.
If your implementation does not work, let me know, I can post my implementation of the user blob.