aspose file tools*
The moose likes Object Relational Mapping and the fly likes File Storing in Hiberbnate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "File Storing in Hiberbnate" Watch "File Storing in Hiberbnate" New topic
Author

File Storing in Hiberbnate

vijay yadav
Greenhorn

Joined: Aug 20, 2007
Posts: 8
Hi Everybody,

Can anybody explain me file storing concept in hibernate with simple example on struts-hibernate integration.

Thanks,
vijay
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
Hibernate has no notion of storing files. It does support the SQL BLOB datatype, which can be used to store the contents of files. Is that what you're asking about?


Ping & DNS - my free Android networking tools app
vijay yadav
Greenhorn

Joined: Aug 20, 2007
Posts: 8
Hi Mr Ulf,
Thank you for your reply,
I am using struts,hibernate and SQL Server for developing a simple application.
I need to upload files and store in Database.How can i do that in DAO can you please explain me.

Thanks,
Vijay.
[ August 23, 2007: Message edited by: vijay yadav ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
There are various ways to upload a file using Java in a web application; see here for some starting points.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Storing in Hiberbnate