-->
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.  [ 3 posts ] 
Author Message
 Post subject: Storing Image as Blob using Hibernate
PostPosted: Wed Dec 29, 2004 4:25 am 
Newbie

Joined: Tue Dec 14, 2004 12:54 pm
Posts: 4
Location: Bangalore, India
Hibernate version : 2.0
Database : Oracle 9i


Hello

I am having a column 'Icons' as a Blob in Oracle. Now i want to store a Image using Hibernate & Java.

Plz. anybody tell me the way its most urgent.

Thanks in Advance.[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2004 1:42 pm 
Regular
Regular

Joined: Sun Aug 01, 2004 6:49 pm
Posts: 76
An example would be:

http://www.hibernate.org/73.html

HTH
Thomas


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2004 1:53 pm 
Regular
Regular

Joined: Tue Sep 28, 2004 6:34 pm
Posts: 50
For Oracle I would rather recomend second solution ("Updated Clobs handling for Oracle and Hibernate") from page:
http://www.hibernate.org/56.html

It uses interceptor to clean temoporary lobs. It requires Oracle's 9 drivers and works fine for MySql, Postgres, Oracle 8, 9 (I have not had a chance to check other versions, databases).

Just change clob handlers to lob ones.

Lukasz


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