Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 12th, 2004, 06:08 PM
libadisauce libadisauce is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Washington
Posts: 24 libadisauce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to libadisauce
Images and mySQL

I have seen articles and tutorials on the internet about saving images in a mySQL database. I was wondering if anyone could tell me what the advantage is, if any, of storing an image in a database instead of a directory.

-Libadisauce

Reply With Quote
  #2  
Old March 12th, 2004, 08:21 PM
-vertigo- -vertigo- is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Louth, Lincolnshire
Posts: 314 -vertigo- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 2
RE: Images and mySQL

The only advantage I can think of is that te data is contained. When you delete a record, the picture gets removed as well, without any other work. Also you don't have to dream up funny names for pictures. Many sites I see picture names like 5943875458.jpg.

I would say that you should only use it if they are a standard size and only relevant to that specific row. A person's photo is the type of picture that might be placed in a database, or thumbnail pictures of products. Anything standard, really. It must be directly related to the data in that row, obviously.

If the pictures are of varying sizes, I would avoid it.

Reply With Quote
  #3  
Old March 12th, 2004, 08:32 PM
libadisauce libadisauce is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Washington
Posts: 24 libadisauce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to libadisauce
RE: Images and mySQL

Thanks -vertigo-. I can see how that can make some things easier and why it might be used.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Images and mySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT