-->
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: save images with hibernate
PostPosted: Sun Feb 13, 2005 7:25 am 
Newbie

Joined: Wed Jan 19, 2005 6:41 am
Posts: 7
Hi anyone

i want save image in database (for example Oracle9i ) but dont know how
write hbm.xml and filed for it in the class.

field name for example is map.
please write quite and tell me how save and retrive from it column.if you have a example send

tanks very...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 13, 2005 9:24 am 
Newbie

Joined: Wed Sep 22, 2004 10:10 am
Posts: 15
Location: Darmstadt, Germany
You can transform your image into a byte array and then save it to the DB using the usertype presented here:
http://www.hibernate.org/73.html

Also of interest might be:
http://www.hibernate.org/56.html

HTH & greetings,

beelzebot.


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.