-->
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.  [ 4 posts ] 
Author Message
 Post subject: saving Outputstream (with "Blob" or "BLOB&quo
PostPosted: Wed Nov 10, 2004 9:51 am 
Newbie

Joined: Wed Oct 13, 2004 5:32 am
Posts: 8
is there an elegant way to save an outputstream in oracale-db (with hibernate)

i tried to use "Blob" and "BLOB" but it doesn


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 11, 2004 3:35 am 
Most of the Clob & Blob issues are resolved in the new 10g JDBC Driver, so you might want to give it a try.

G.


Top
  
 
 Post subject:
PostPosted: Thu Nov 11, 2004 6:02 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It still needs special treatment with casts to Oracle ResultSet, etc. If you use a decent Oracle driver (ie. not one made by Oracle), you get normal JDBC LOB handling.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 11, 2004 8:32 am 
Newbie

Joined: Wed Oct 13, 2004 5:32 am
Posts: 8
ok.
i did it with oracle.sql.BLOB

it works, but i have 2 convert the stream to a byte[] first.
its not as performant as saving the stream directly.

thx for your suggestion


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.