mxc4 wrote:
Hi all,
I am having problems mapping the mssql datatype image to a java type in the hbm files. The middlegen app generated a mapping to java.io.InputStream but when the hibernate layer runs the configuration file it complains about the mapping saying that
"Caused by: net.sf.hibernate.MappingException: Could not interpret type: java.io.InputStream"
I am using the ms jdbc drivers for mssql. Any help appreciated.
thanks
The MS JDBC drivers do not support BLOB and CLOB types. You need to use an alternate driver. I am in the process of switching from the MS driver to jTDS for this reason. jTDS does allow you to load image objects.