Re: Storing Images?



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" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:eZNo9kbKGHA.740@xxxxxxxxxxxxxxxxxxxxxxx
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" <redhair@xxxxxxxxxxxxxxx> wrote in message
news:OMYwGiPKGHA.524@xxxxxxxxxxxxxxxxxxxxxxx
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" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:OqFnZ3MKGHA.1028@xxxxxxxxxxxxxxxxxxxxxxx
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" <redhair@xxxxxxxxxxxxxxx> wrote in message
news:OiVFXSJKGHA.3200@xxxxxxxxxxxxxxxxxxxxxxx
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" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:On7sva$JGHA.2828@xxxxxxxxxxxxxxxxxxxxxxx
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" <adam.jknight@xxxxxxxxxxxxxxx> wrote in message
news:%23HU2kj%23JGHA.2304@xxxxxxxxxxxxxxxxxxxxxxx
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













.



Relevant Pages

  • NetSec Security Advisory: Multiple Vulnerabilities Resulting From Use Of Apple OSX HFS+
    ... NetSec released details of a vulnerability impacting ... methods to an underlying legacy HFS+ file system: ... one method to leverage this 'feature' of the legacy HFS+ driver in OS X: ... The default configuration of several web server ...
    (Bugtraq)
  • Re: HTTP FS?
    ... URL is exactly what http has been "designed" for. ... Even a read-only file system allows you to list a directory (as far as I ... HTTP it isn't included in the protocol. ... To give the server a clue, ...
    (comp.os.minix)
  • Re: Best way to "Clone" a Linux Hard drive?
    ... >> near certainty, not a risk, since your server is busy enough to make you ... It's not logfile integrity, but file system integrity. ... let's take this into a runlevel where only three things run: ... What you should do is run a failover server as a mirror, ...
    (comp.os.linux.setup)
  • Re: Asynchronous socket programming vs. remoting
    ... You are the first person that said I should use sockets. ... them quicker than I can load them from my harddrive using the file system. ... It scales nice too - I tried throwing 400 requests at the server in a span ... > do not need the same assembly on the client and server. ...
    (microsoft.public.dotnet.languages.csharp)
  • HUGE number of files in directories - limits ? performance problems ?
    ... The images will be served through the web. ... the file system cache. ... There is also a database running on the server and I don't want this to slow ...
    (comp.unix.solaris)