User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,596 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,441 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1218 | Replies: 1
Reply
Join Date: Dec 2006
Posts: 49
Reputation: sivaslieko++ is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
sivaslieko++ sivaslieko++ is offline Offline
Light Poster

Question storing images into database

  #1  
Sep 7th, 2007
Should I store images as binary or should I store their paths into database? Do you think which one is more advantageous?
I am waiting for your suggestions..

Have a good programming )
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: storing images into database

  #2  
Sep 9th, 2007
I would store the location of the images in the database.

This is because images like *.jpg are compressed with nice small file sizes designed for the internet but when stored in a database they are not compressed.

To see the difference save an image in *.jpg then resave as *.bmp as *.bmp files are not compressed


I have done this before for an internal network application and decided that it would be better to have a small database and image storage area then to have a large database


Plus it requires a large amount of code to convert the image into binary and back compared to just getting the location.
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 6:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC