-->
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: Save Excel File using Hibernate
PostPosted: Wed May 20, 2009 1:51 am 
Beginner
Beginner

Joined: Wed May 10, 2006 9:43 pm
Posts: 30
Location: Australia
Hi Everyone,

I need to be able to save an excel file in my database. How do I achieve this using Hibernate. I'm not sure how to save the file as a BLOB in Hibernate.

The file is uploaded by the user in an upload control, I have a loop converting the uploaded file into byte code.

I'm also having trouble saving an image from the Excel file as a BLOB. I'm using Apache POI to parse the Excel sheet.

Please post a response if you can help.

Cheers, Alyssa


Top
 Profile  
 
 Post subject: Re: Save Excel File using Hibernate
PostPosted: Wed May 20, 2009 7:24 am 
Newbie

Joined: Sat Nov 29, 2008 10:56 am
Posts: 8
If you are using the Spring framework then this article will help you.

http://revetkn.com/?p=17


Top
 Profile  
 
 Post subject: Re: Save Excel File using Hibernate
PostPosted: Wed May 20, 2009 8:20 pm 
Beginner
Beginner

Joined: Wed May 10, 2006 9:43 pm
Posts: 30
Location: Australia
Hi, I'm not using the spring framework, is there another way?


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.