Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Storing in Hiberbnate

 
vijay yadav
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,

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

Thanks,
vijay
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
vijay yadav
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are various ways to upload a file using Java in a web application; see here for some starting points.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic