Re: file upload storage - database vs folder
From: Angelos Karantzalis (akarantzalis_at_agiltech.gr)
Date: 10/27/04
- Next message: Visual Systems AB \(Martin Arvidsson\): "Re: Including a MS.SQL Database in the setup project."
- Previous message: Angelos Karantzalis: "Re: Career Advices"
- In reply to: Henrik Nordgren: "RE: file upload storage - database vs folder"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 11:29:37 +0300
This has been the topic of many discussions amongst many web people :]
One question though. Suppose I do store my images for a web site in a BLOB
inside my DB. When I get a request for a web page that contains a few
images, don't I need to point the client browser somewhere to fetch those
files ? Won't I be forced to create a page (script, HttpHandler, call it
what you want ) that returns the image data from the database with the
proper header/content type info ? Isn't this overkill in the case you just
need to display a pic on a web site ?
Angel
O:]
"Henrik Nordgren" <HenrikNordgren@discussions.microsoft.com> wrote in
message news:6676345C-B176-4221-8C13-E2634CBE4BAB@microsoft.com...
> I have used both techniques whilst working with oracle database.
>
> And it all comes down to the scenario. But generally I want to keep my
data
> in as few places as possible, for security reasons, and for availability
> reasons. And it is nothing complicated about storing a binary file in a
BLOB
> field in the database. You can still read it while working with datasets..
it
> is serialized and encoded using Base64. And I do't like to store paths in
> database, becuase then you create a depencence between the file system and
> the application. And this is not good from an architectural point of view.
>
> Of course when you need a third party application to access the file, then
> perhaps the best choice would be to store the file in a shared folder. If
it
> can't be solved in any other way.. I always consider file systems as a
last
> resort...
>
> but thats just me ;) Im no MVP or MCAD...
>
> kind regards
> Henrik
>
>
> "R Reyes" wrote:
>
> > what are the pros/cons of uploading a file into a database (like access,
sql
> > server, oracle) vs. uploading a file into a folder (and only storing its
path
> > in a database table) ?
> >
> > i've never had to upload a file into a database and am assuming it's
easier
> > to just put files in a folder with its path stored in the database.
storing
> > a file in the database seems like a bit more work and is just "another
> > solution" rather than a recommended one.
> >
> > ideas and comments please? thanks.
- Next message: Visual Systems AB \(Martin Arvidsson\): "Re: Including a MS.SQL Database in the setup project."
- Previous message: Angelos Karantzalis: "Re: Career Advices"
- In reply to: Henrik Nordgren: "RE: file upload storage - database vs folder"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|