How to store files for thick client app

All we need is an easy explanation of the problem, so here it is.

How to correctly store files for thick client app (Ora DB <-> Win App)?
A) If we store files in DB, DB is hard to manage and, as I understand, violates best practices.
B) If we store files on disk, then how to access them – windows share is out of question b.c. security and other communication with server is only DB connection.
Any ideas how to store those files and access them to insure security and consistency?
P.S. Redesigning app for web is to expensive.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

Files are "best" managed in a file system.
Files systems can be made remotely available through file shares.
Your use case appears to preclude the use of these. That’s unfortunate, because it’s probably your easiest option.

OK, so you need another way of getting files from your central location where the files are stored to the client application.

Yes, you could put them into the database.
As you say, it’s not ideal but it’s an option. You’ll need a lot of storage, depending on the files’ sizes, but that’s just disk space that you’d need anyway. Retrieving big chunks of data will make queries [a bit] slower but, technically, it’s not that big a challenge.

Another, and better, alternative might be to have some other piece of software to make your centrally-stored files available to your "remote" application.
That would be a Web Server.
Even if you’re only operating on an internal network, this is the best tool for the job. It’s scalable, securable and easily operated and – bonus – it acts as a "stepping stone" towards moving your application to the web.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply