Thank you dbland07666 for responding back,
Well the files shouldn't go over 4 mb, and yes I would save them as binary using a file handler to interrupt them back to the user when viewing.
Actually, I have the code working to store files to a database, I am just trying to understand the difference between using a web server and a database.
Why would one way be better then the other?
I'm just a little wary when you give write permission to the web server because someone could save a file to the site that would redirect the application to whatever or wherever. Even if we use authentication, there is still the fact that someone could possibly hi-jack site.
With the database there is 3 columns required for input, the fileId, fileName, and fileBytes. With the web server there is just 1 folder that can hold a file up to 4 mb, so you are at greater security risk using a web server. Especially if I increase the file storage to something greater than 4 mega bites like to 10 per say.
This is just how I see it, but I’m not sure. That is why I was asking for the pros and cons of the web server.
Could you tell me more?
Thanks,
xyz789