Results 1 to 3 of 3
  1. #1
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

    Default Saving Blob through Hibernate

    I want to store a image using Blob in oracle database but this error appears:

    Java Code:
    org.hibernate.exception.GenericJDBCException: could not insert: [user.Product]
    at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(
    at org.hibernate.exception.ErrorCodeConverter.convert(
    at org.hibernate.exception.JDBCExceptionHelper.convert(
    at org.hibernate.persister.BasicEntityPersister.insert(
    at org.hibernate.persister.BasicEntityPersister.insert(
    at org.hibernate.action.EntityInsertAction.execute(
    at org.hibernate.impl.ActionQueue.executeActions(
    at org.hibernate.impl.ActionQueue.executeActions(
    at org.hibernate.event.AbstractFlushingEventListener.performExecutions(
    at org.hibernate.event.DefaultFlushEventListener.onFlush(
    at org.hibernate.impl.SessionImpl.flush(
    at org.hibernate.transaction.JDBCTransaction.commit(
    at user.ProductDetails.saveProduct(
    at user.TempRunner.main(
    Caused by: java.sql.SQLException: operation not allowed: streams type cannot be used in batching
    at oracle.jdbc.dbaccess.DBError.throwSqlException(
    at oracle.jdbc.dbaccess.DBError.throwSqlException(
    at oracle.jdbc.driver.OraclePreparedStatement.addBatch(
    at com.mchange.v2.sql.filter.FilterPreparedStatement.addBatch(
    at org.hibernate.jdbc.BatchingBatcher.addToBatch(
    at org.hibernate.persister.BasicEntityPersister.insert(
    What's wrong?

  2. #2
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

  3. #3
    Thennarasu's Avatar
    Thennarasu is offline Member
    Join Date
    Jan 2009
    Chennai, Tamilnadu
    Rep Power

    Cool HI

    hello dude...
    i am new to and i would like to participate in as many thread that i could.

Similar Threads

  1. Saving data...?
    By easyRyder in forum New To Java
    Replies: 8
    Last Post: 07-15-2008, 03:14 AM
  2. saving variables to the harddrive
    By Talon876 in forum New To Java
    Replies: 1
    Last Post: 11-02-2007, 02:30 AM
  3. Problems updating blob columns on Oracle 9
    By ljustiniano in forum JDBC
    Replies: 0
    Last Post: 08-14-2007, 06:17 PM
  4. Replies: 2
    Last Post: 06-30-2007, 03:01 PM
  5. Saving Variables
    By Fish in forum New To Java
    Replies: 6
    Last Post: 06-25-2007, 08:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts