File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which is best solution to store wave and doc file?

 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in medical transcription domain we are receiving 300 voice file and further we have to maintain transcript ,editing and super editing file for particular voice file.Right now we storing all the in disc mean we are maintain unique folder structure to store.my question is can we use database to store all file as binary data using jdbc blob data type?.which is the right way please suggest me.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use a database. Ultimately this will just store these files on disk too, though in a differernt format. There is an overhead getting BLOBs in and out of a database, but it has the advantage of being a transactional store. The file system is not transactional, so data loss is possible, plus you will have issues with concurrency.

In addition, the file system is not as easy to access from a distributed environment in a platform agnostic way. You can't write to the file system from an EJB for example.
 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ti sudden reply.

yes. if i use file system i cannot use EJB because we should not perform I/O operation inside EJB.so can use inputstream and outstream object in ejb if i use database to store file?.why i am asking mean if the file may big out of memory exception will occur when using EJB.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic