store image in DB or in file

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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??
    3. 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...
    4. [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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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...
    > 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
    > >
    > >
    >
    >

    CT Guest

  6. #5

    Default 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...
    > 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...
    > > 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...
    > > > 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
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    CT Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139