Ask a Question related to ASP.NET General, Design and Development.
-
clark #1
store image in DB or in file
I have an app that needs to upload images for each active
member. Which is the best approach?
1. to store the img directly in SQL Server database
or
2. to store path/filename in db and put file on server
volume is potentially 10,000+ images
clark Guest
-
image select, resize and locally store (flex3 airexample)
Hi Jacob, I've tried out your script as it seems to be a good starter for an application I'm about to write. In my case, I don't want to create... -
automatic resize image and store
anyone know how to resize a uploaded image and then resize it to certain percentage or witdh and height before store again into the file directory?? -
how to store image links in mysql
Hi I want to develop a dynamic gallery but can not find an example that targets someone of my limited intelligence. If someone out there can... -
[PHP] How to store a file into MSSQL?
I just use a TEXT field, and am doing so with 25k images, without issue. On Tue, 2003-07-15 at 18:45, Javier wrote: -- Adam Voigt... -
How to automatically scan and store image in access?
I have a project that need to store an image for each record. But the image needs to be scanned automatically then stored. How can I do this? I'm... -
Steve C. Orr, MCSD #2
Re: store image in DB or in file
The answer is "it depends."
It depends on all kinds of things such as hardware, infrastructure, number
of users, peak loads, scalability requirements, etc.
Certainly storing the files in SQL Server is easier because you don't have
to worry about file management issues, such as naming conflicts, and files
being deleted, moved, etc.
Here's a good tutorial on the subject for you:
[url]http://www.aspnetpro.com/features/2003/07/asp200307so_f/asp200307so_f.asp[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"clark" <clark@speakeasyinteractive.com> wrote in message
news:024f01c35606$d96c6ce0$a401280a@phx.gbl...> I have an app that needs to upload images for each active
> member. Which is the best approach?
> 1. to store the img directly in SQL Server database
> or
> 2. to store path/filename in db and put file on server
>
> volume is potentially 10,000+ images
Steve C. Orr, MCSD Guest
-
Steve C. Orr, MCSD #3
Re: store image in DB or in file
This is true to some extent.
But keep in mind that Microsoft's next Windows file system is based on SQL
Server.
So soon you'll essentially be storing all your files in SQL Server whether
you want to or not.
Even so, the decision still basically comes down to App Performance vs.
Development Time.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Kevin Spencer" <kevin@takempis.com> wrote in message
news:%23L2$EAhVDHA.208@tk2msftngp13.phx.gbl...> Storing in the file system will be less costly, as storing and retrieving
> binary data from a SQL Server is much more costly in terms of performance
> than storing and fetching files from the file system.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> [url]http://www.takempis.com[/url]
> Complex things are made up of
> lots of simple things.
>
> "clark" <clark@speakeasyinteractive.com> wrote in message
> news:024f01c35606$d96c6ce0$a401280a@phx.gbl...>> > I have an app that needs to upload images for each active
> > member. Which is the best approach?
> > 1. to store the img directly in SQL Server database
> > or
> > 2. to store path/filename in db and put file on server
> >
> > volume is potentially 10,000+ images
>
Steve C. Orr, MCSD Guest
-
CT #4
Re: store image in DB or in file
I agree with your view points, but while waiting for Yukon I think that
because of SQL Servers rather poor BLOB handling, storing images in the file
system is by far the most efficient.
--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
[url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:%23o7DeXiVDHA.1832@TK2MSFTNGP09.phx.gbl...retrieving> This is true to some extent.
> But keep in mind that Microsoft's next Windows file system is based on SQL
> Server.
> So soon you'll essentially be storing all your files in SQL Server whether
> you want to or not.
>
> Even so, the decision still basically comes down to App Performance vs.
> Development Time.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Kevin Spencer" <kevin@takempis.com> wrote in message
> news:%23L2$EAhVDHA.208@tk2msftngp13.phx.gbl...> > Storing in the file system will be less costly, as storing andperformance> > binary data from a SQL Server is much more costly in terms of>> > than storing and fetching files from the file system.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > [url]http://www.takempis.com[/url]
> > Complex things are made up of
> > lots of simple things.
> >
> > "clark" <clark@speakeasyinteractive.com> wrote in message
> > news:024f01c35606$d96c6ce0$a401280a@phx.gbl...> >> > > I have an app that needs to upload images for each active
> > > member. Which is the best approach?
> > > 1. to store the img directly in SQL Server database
> > > or
> > > 2. to store path/filename in db and put file on server
> > >
> > > volume is potentially 10,000+ images
> >
>
CT Guest
-
CT #5
Re: store image in DB or in file
That can certainly be an issue, so you have to choose between two
evils...<g>
--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
[url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
"Ray Dixon [MVP]" <ray@NOSPAM.greeble.com> wrote in message
news:u77cCR4VDHA.1872@TK2MSFTNGP12.phx.gbl...vs.> Keep in mind you will have to deal with the possibility (probability?) of
> duplicate file names if you store the files in the file system. In a SQL
> DB, you wouldn't have that issue.
>
> My $.02.
>
>
> --
> Ray Dixon - Microsoft MVP
> [email]ray@NOSPAM.greeble.com[/email]
> (remove NOSPAM. from my e-mail address for a direct reply)
>
>
> "CT" <carstent@spammersgowaydotnetservices.biz> wrote in message
> news:uYUzRFzVDHA.532@TK2MSFTNGP09.phx.gbl...> file> > I agree with your view points, but while waiting for Yukon I think that
> > because of SQL Servers rather poor BLOB handling, storing images in the> SQL> > system is by far the most efficient.
> >
> > --
> > Carsten Thomsen
> > Enterprise Development with Visual Studio .NET, UML, and MSF
> > [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
> > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > news:%23o7DeXiVDHA.1832@TK2MSFTNGP09.phx.gbl...> > > This is true to some extent.
> > > But keep in mind that Microsoft's next Windows file system is based on> whether> > > Server.
> > > So soon you'll essentially be storing all your files in SQL Server> > > you want to or not.
> > >
> > > Even so, the decision still basically comes down to App Performance>> > retrieving> > > Development Time.
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD
> > > [url]http://Steve.Orr.net[/url]
> > >
> > >
> > > "Kevin Spencer" <kevin@takempis.com> wrote in message
> > > news:%23L2$EAhVDHA.208@tk2msftngp13.phx.gbl...
> > > > Storing in the file system will be less costly, as storing and> > performance> > > > binary data from a SQL Server is much more costly in terms of> >> > > > than storing and fetching files from the file system.
> > > >
> > > > --
> > > > HTH,
> > > >
> > > > Kevin Spencer
> > > > Microsoft MVP
> > > > .Net Developer
> > > > [url]http://www.takempis.com[/url]
> > > > Complex things are made up of
> > > > lots of simple things.
> > > >
> > > > "clark" <clark@speakeasyinteractive.com> wrote in message
> > > > news:024f01c35606$d96c6ce0$a401280a@phx.gbl...
> > > > > I have an app that needs to upload images for each active
> > > > > member. Which is the best approach?
> > > > > 1. to store the img directly in SQL Server database
> > > > > or
> > > > > 2. to store path/filename in db and put file on server
> > > > >
> > > > > volume is potentially 10,000+ images
> > > >
> > > >
> > >
> > >
> >
>
CT Guest



Reply With Quote

