-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: byte[] & Oracle
PostPosted: Fri Nov 21, 2003 11:19 am 
Beginner
Beginner

Joined: Thu Nov 13, 2003 9:27 am
Posts: 26
Location: France
Hello all,

I have some pbs with a "file" I have to save :

My mapping is :
Code:
<property name="fichierBinaire" column="FICHIER_BINAIRE" not-null="true" type="binary"/>


and my Java is :

Code:
private byte[] fichierBinaire ;


When I try to save my file, I have this exception :

Code:
java.sql.SQLException:
Stream has already been closed
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    etc.


Have someone an idea ?
What type should be better to use for my "fichierBinaire" if not byte[] ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2003 12:51 pm 
Beginner
Beginner

Joined: Thu Nov 13, 2003 9:27 am
Posts: 26
Location: France
Help ! help !

I've tried all to solve this pb, but even when I use a java.sql.blob instead of the byte[] I have he same exception : "Stream has already been closed"...

:'(


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.