473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Storing Images?

Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!

Cheers,
Adam
Feb 2 '06 #1
9 2341
Well it depends on the size of images..
I will store them in the database if they won't be that large otherwise File
System.
But there is more flexibilty storing it in the database...
Patrick
** How is the weather in Brisbane?
"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!

Cheers,
Adam

Feb 2 '06 #2
"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!


Generally speaking, I don't have a preference. Of course, sometimes there is
no choice i.e. for public websites where the ISP fully supports SQL Server,
but doesn't allow its hosted sites write access to the site...
Feb 2 '06 #3
File System. Database is definitely a *lot* harder, not easier, and has a
performance hit.

Generally, if the images need to be catalogued, you can use a database to
store meta-data about the images. Sometimes, however, you can use a folder
and/or naming scheme to store the necessary meta-data.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!

Cheers,
Adam

Feb 2 '06 #4
If store images in file system, is there any limitation of total file number
in a single folder?
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?

Thanks.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> ¼¶¼g©ó¶l¥ó·s»D:On**************@TK2MSFTNGP12.phx.g bl...
File System. Database is definitely a *lot* harder, not easier, and has a
performance hit.

Generally, if the images need to be catalogued, you can use a database to
store meta-data about the images. Sometimes, however, you can use a folder
and/or naming scheme to store the necessary meta-data.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!

Cheers,
Adam


Feb 3 '06 #5
> If store images in file system, is there any limitation of total file
number
in a single folder?
You've got to be kidding. While the answer is, of course, yes, the number is
astronomical. Take a look at your own current file system under Windows, for
example.
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?
In a Web Farm, all the servers are part of the same domain. Therefore, you
can use UNC paths to the files, as long as each machine has permission to
access those folders.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl... If store images in file system, is there any limitation of total file
number
in a single folder?
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?

Thanks.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com>
¼¶¼g©ó¶l¥ó·s»D:On**************@TK2MSFTNGP12.phx.g bl...
File System. Database is definitely a *lot* harder, not easier, and has a
performance hit.

Generally, if the images need to be catalogued, you can use a database to
store meta-data about the images. Sometimes, however, you can use a
folder and/or naming scheme to store the necessary meta-data.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!

Cheers,
Adam



Feb 3 '06 #6
I should add that, in fact, a file system *is* a database. However, it is at
a much lower level (direct disk read/write) than a database, and has less
functionality, and therfore, overhead.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl...
If store images in file system, is there any limitation of total file
number
in a single folder?
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?

Thanks.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com>
¼¶¼g©ó¶l¥ó·s»D:On**************@TK2MSFTNGP12.phx.g bl...
File System. Database is definitely a *lot* harder, not easier, and has a
performance hit.

Generally, if the images need to be catalogued, you can use a database to
store meta-data about the images. Sometimes, however, you can use a
folder and/or naming scheme to store the necessary meta-data.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!

Cheers,
Adam



Feb 3 '06 #7
Thanks.
Is the FileSystem object of classic ASP only able to work to local file
system?
Is there any built-in .NET class for ASP.NET to access remote file system
directly?
or I need to code a customized class and use it via ASP.NET?

Btw, even we have a separate centralized file server for file storage only,
when
the number of directories and files grow up very large, the disk I/O is a
issue, how
to solve this problem? add new file server and distribute all files to all
file servers
equally?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> ¼¶¼g©ó¶l¥ó·s»D:Oq**************@TK2MSFTNGP11.phx.g bl...
If store images in file system, is there any limitation of total file
number
in a single folder?


You've got to be kidding. While the answer is, of course, yes, the number
is astronomical. Take a look at your own current file system under
Windows, for example.
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?


In a Web Farm, all the servers are part of the same domain. Therefore, you
can use UNC paths to the files, as long as each machine has permission to
access those folders.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl...
If store images in file system, is there any limitation of total file
number
in a single folder?
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?

Thanks.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> ¼¶¼g©ó¶l¥ó·s»D:On**************@TK2MSFTNGP12.phx.g bl...
File System. Database is definitely a *lot* harder, not easier, and has
a performance hit.

Generally, if the images need to be catalogued, you can use a database
to store meta-data about the images. Sometimes, however, you can use a
folder and/or naming scheme to store the necessary meta-data.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Hi all,

Just wondering whats everyones prefered method of storing images ?

1) File System
2) Database (SqlServer) (Seems to be easier, but has a performance hit)

Appreciate some insight!!!

Cheers,
Adam



Feb 3 '06 #8
Hi RedHair,
Is the FileSystem object of classic ASP only able to work to local file
system?
Use the classes in the System.IO namespace. This includes Directory,
DirectoryInfo, File, FileInfo, and a number of others.
Btw, even we have a separate centralized file server for file storage
only, when
the number of directories and files grow up very large, the disk I/O is a
issue, how
to solve this problem? add new file server and distribute all files to all
file servers
equally?
Where do you think your database stores data? In the file system. Therefore,
if you're going to have enough files and folders in the file system to slow
down the disk I/O, it would have a similar (but worse) effect on a SQL
Server.

Now, SQL Server uses memory for caching, which cuts down on IO usage. But if
you were accessing enough files on the disk to cause an IO issue, the SQL
Server would have either memory issues, due to the caching of these image
files, or, if the memory is throttled down, IO issues, or both.

So, all things being equal, I would still recommend using the file system.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:OM*************@TK2MSFTNGP09.phx.gbl... Thanks.
Is the FileSystem object of classic ASP only able to work to local file
system?
Is there any built-in .NET class for ASP.NET to access remote file system
directly?
or I need to code a customized class and use it via ASP.NET?

Btw, even we have a separate centralized file server for file storage
only, when
the number of directories and files grow up very large, the disk I/O is a
issue, how
to solve this problem? add new file server and distribute all files to all
file servers
equally?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com>
¼¶¼g©ó¶l¥ó·s»D:Oq**************@TK2MSFTNGP11.phx.g bl...
If store images in file system, is there any limitation of total file
number
in a single folder?


You've got to be kidding. While the answer is, of course, yes, the number
is astronomical. Take a look at your own current file system under
Windows, for example.
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?


In a Web Farm, all the servers are part of the same domain. Therefore,
you can use UNC paths to the files, as long as each machine has
permission to access those folders.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl...
If store images in file system, is there any limitation of total file
number
in a single folder?
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?

Thanks.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com>
¼¶¼g©ó¶l¥ó·s»D:On**************@TK2MSFTNGP12.phx.g bl...
File System. Database is definitely a *lot* harder, not easier, and has
a performance hit.

Generally, if the images need to be catalogued, you can use a database
to store meta-data about the images. Sometimes, however, you can use a
folder and/or naming scheme to store the necessary meta-data.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Adam J Knight" <ad**********@optusnet.com.au> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
> Hi all,
>
> Just wondering whats everyones prefered method of storing images ?
>
> 1) File System
> 2) Database (SqlServer) (Seems to be easier, but has a performance
> hit)
>
> Appreciate some insight!!!
>
> Cheers,
> Adam
>



Feb 4 '06 #9
Thanks.
Any suggestions for extend the file system when the disk I/O issue coming?
how to add more servers and distribute existing files and directories to
them
equally?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> ¼¶¼g©ó¶l¥ó·s»D:eZ*************@TK2MSFTNGP12.phx.gb l...
Hi RedHair,
Is the FileSystem object of classic ASP only able to work to local file
system?


Use the classes in the System.IO namespace. This includes Directory,
DirectoryInfo, File, FileInfo, and a number of others.
Btw, even we have a separate centralized file server for file storage
only, when
the number of directories and files grow up very large, the disk I/O is a
issue, how
to solve this problem? add new file server and distribute all files to
all file servers
equally?


Where do you think your database stores data? In the file system.
Therefore, if you're going to have enough files and folders in the file
system to slow down the disk I/O, it would have a similar (but worse)
effect on a SQL Server.

Now, SQL Server uses memory for caching, which cuts down on IO usage. But
if you were accessing enough files on the disk to cause an IO issue, the
SQL Server would have either memory issues, due to the caching of these
image files, or, if the memory is throttled down, IO issues, or both.

So, all things being equal, I would still recommend using the file system.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:OM*************@TK2MSFTNGP09.phx.gbl...
Thanks.
Is the FileSystem object of classic ASP only able to work to local file
system?
Is there any built-in .NET class for ASP.NET to access remote file system
directly?
or I need to code a customized class and use it via ASP.NET?

Btw, even we have a separate centralized file server for file storage
only, when
the number of directories and files grow up very large, the disk I/O is a
issue, how
to solve this problem? add new file server and distribute all files to
all file servers
equally?

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> ¼¶¼g©ó¶l¥ó·s»D:Oq**************@TK2MSFTNGP11.phx.g bl...
If store images in file system, is there any limitation of total file
number
in a single folder?

You've got to be kidding. While the answer is, of course, yes, the
number is astronomical. Take a look at your own current file system
under Windows, for example.

Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?

In a Web Farm, all the servers are part of the same domain. Therefore,
you can use UNC paths to the files, as long as each machine has
permission to access those folders.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl...
If store images in file system, is there any limitation of total file
number
in a single folder?
Btw, if the web site is a web farm, how to store image to a centralized
file system and retrieve them later?

Thanks.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> ¼¶¼g©ó¶l¥ó·s»D:On**************@TK2MSFTNGP12.phx.g bl...
> File System. Database is definitely a *lot* harder, not easier, and
> has a performance hit.
>
> Generally, if the images need to be catalogued, you can use a database
> to store meta-data about the images. Sometimes, however, you can use a
> folder and/or naming scheme to store the necessary meta-data.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Who is Mighty Abbott?
> A twin turret scalawag.
>
> "Adam J Knight" <ad**********@optusnet.com.au> wrote in message
> news:%2******************@TK2MSFTNGP15.phx.gbl...
>> Hi all,
>>
>> Just wondering whats everyones prefered method of storing images ?
>>
>> 1) File System
>> 2) Database (SqlServer) (Seems to be easier, but has a performance
>> hit)
>>
>> Appreciate some insight!!!
>>
>> Cheers,
>> Adam
>>
>
>



Feb 5 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Benoit St-Jean | last post by:
I am looking at options/ways to store 12 million gif/jpg images in a database. Either we store a link to the file or we store the image itself in the database. Images will range from 4k to 35k in...
6
by: bissatch | last post by:
Hi, I am currently writing a news admin system. I would like to add the ability to add images to each article. What I have always done in the past is uploaded (using a form) the image to a...
4
by: Rednelle | last post by:
Greetings all, As a newbie, using Access 2000, I would appreciate advice on the best way to include pictures. I have developed a 'Home Inventory' database which can include jpeg thumbnails of...
6
by: stenospamron | last post by:
Does anyone have any advice as to how to get JPG images into an OLE Object field? I have created a table that includes this data type, and allowed Access wizzard to generate a form. I wish to...
3
by: T23459 | last post by:
Re: storing jpg images in Access. I have a database that requires adding pictures (jpegs) on a regular basis. OLE field. Even if they are only 320x240 large, I can see - over time, that the amount...
4
by: IkBenHet | last post by:
Hello, I am working on an ASP.NET based website project. Without going into much detail; One of the function on this website will be the possibility to upload images via a ASP.NET form to the...
4
by: lorirobn | last post by:
Hi, I need to add photos to my database. Back End is on MS SQL Server (I believe 2000), and Front End is on MS Access. I have read about storing the photos as BLOBS, but I am not sure how to...
2
by: Paulo | last post by:
Hi, how are you ? Can you send me any examples about storing images on bd and showing them on gridview? Im using VS2005 asp.net 2.0 C# Thanks a lot!
1
by: Jonathan Wood | last post by:
My site includes a feature that allows users to upload an image. (Never more than one image per user.) I've been considering storing these uploaded images as a file on the server with a filename...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.