7 Replies Latest reply on May 15, 2012 8:44 AM by gimbal2

    JAVA, sqlserver - Need to load an image from the sql server database

    669332
      hi,

      I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
      I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.

      I get the error :
      Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1

      How can I achieve this?

      Thanks,

      Gargi