• Post Reply Bookmark Topic Watch Topic
  • New Topic

opening a file

 
Ivan Kesic
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I wonder is it possible to take files from a database and open it trough java programme? I need to put some files (.doc, .jpg, .txt) into a database, and then when i take it out, i need to put them in a list and when user selects a file from list, word or excel or paint will open it like in windows. Is that possible?
My friend told me that visual basic has a function called Windows.schellExcute od something like that is from Windows API, and that something like that can be used in java...


Thank you
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see why you would want to store files in a database but with the Desktop class you can open files using the assigned editor.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!