• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Where does the uploaded files get saved?

 
Ranch Hand
Posts: 240
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assume you have a healthcare application where a patient can upload his medical-reports/bills/other-documents under his account so that he can view or access them in future. So where does it exactly get stored? Are these stored into a table in the database? if yes then how?

Thanks in advance.
 
Saloon Keeper
Posts: 5855
146
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can store files in a DB, although I prefer to store them as files in the file system. Depends a bit on how you need to process them, how many there are and how big they are.
 
Arun Singh Raaj
Ranch Hand
Posts: 240
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Depends a bit on how you need to process them, how many there are and how big they are.


These are just bills, radiology reports, medical reports like normal size of documents. With a purpose that the patients can check them in future as well, nothing more than this.

So where would you like them to be stored, file system or the database?
 
Sheriff
Posts: 6340
172
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is a user-facing process (and end user will be looking at the data) I would put it in a plain file.  Most end users don't know how to get data from a DB.
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!