Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2005, 07:00 AM
sivvaa's Avatar
sivvaa sivvaa is online now
Mr.NiceGuy
Vortech Inc. Customer
 
AspUpload - File System or DB ?

Hi all,

Couple of Queries :

1. Iam using AspUpload with AspJpeg to create thumbnails and Image Uploading. Now, which one is advicable :

whether to store the images in FOLDER ?

or

Store the Images in the DB as binary code.

If we store the images as BINARY, will the DB size increase ?

Is there anyother component suggested for this ?

Thanks

Siv
Reply With Quote
  #2  
Old 09-29-2005, 04:10 PM
Silverbug's Avatar
Silverbug Silverbug is offline
Custom Built Solutions
Vortech Inc. Customer
 
Location: AK, New Zealand
Send a message via ICQ to Silverbug Send a message via MSN to Silverbug Send a message via Skype to Silverbug
Personally I would save the images to a folder. that way when retreving files its less overhead getting them to the browser, i would also think it would be a tad quicker as files too. Also depending on how your software works you may not be reliant on the db server, which would be bad if the server went down.
__________________
Paul Foley
Sniper Systems Ltd

Reply With Quote
  #3  
Old 09-29-2005, 05:11 PM
DigitalSkyline's Avatar
DigitalSkyline DigitalSkyline is offline
some kind of digital pimp
Vortech Inc. Customer
 
Location: Greater Detroit Area
Send a message via ICQ to DigitalSkyline Send a message via AIM to DigitalSkyline Send a message via Yahoo to DigitalSkyline
I'd personally advocate using the file system over using the database (also)... and yes because it would dramatically increase the size of the database.

The only problem is that depending on what you are doing it is more complicated to track the file and update/delete using the FS.

Say you are setting up a forum which allows custom avatars... users upload avatars...
you store the file in ./images/users/

In the database you have the image location stored.

Now when you delete that user (or database row), you also have to delete the file.

Not a big deal, really... but just deleting the row would probably be "easier"

Backing up just the database might also be "easier" then backing up the DB and the images folder.

Still, the performance is the top priorty IMO. Databases are best for data that needs to be indexed... not really intended for storing binary data.
Reply With Quote
  #4  
Old 09-30-2005, 07:07 AM
Brangwyn Brangwyn is online now
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
It's normally recommended not to store binary objects in a database, particularly jpegs, it's a resource issue really, why put the database to work serving binary data that could and should really just be served straight from the web servers HDD.
Reply With Quote
  #5  
Old 10-19-2005, 06:11 AM
sivvaa's Avatar
sivvaa sivvaa is online now
Mr.NiceGuy
Vortech Inc. Customer
 
Ok..Now that I have chosen to store the images in a FOLDER rather than binary data..

When I delete a Record, it gets deleted from the TABLE ROW and it Only removes the Path of the image. How to remove the IMAGE itself from the folder at one go...

any solution >?
Reply With Quote
  #6  
Old 10-19-2005, 11:38 AM
DigitalSkyline's Avatar
DigitalSkyline DigitalSkyline is offline
some kind of digital pimp
Vortech Inc. Customer
 
Location: Greater Detroit Area
Send a message via ICQ to DigitalSkyline Send a message via AIM to DigitalSkyline Send a message via Yahoo to DigitalSkyline
http://www.w3schools.com/asp/asp_ref_filesystem.asp

See delete file...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NT Servers - ASPUpload bigdave Network / Server Status 20 04-02-2004 10:43 AM


All times are GMT -5. The time now is 01:36 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.50860 seconds with 16 queries
[Output: 60.59 Kb. compressed to 56.44 Kb. by saving 4.15 Kb. (6.85%)]