Pic Storage : Store Pic Path or Convert as Byte???

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 89
Reputation: raul15791 is an unknown quantity at this point 
Solved Threads: 7
raul15791 raul15791 is offline Offline
Junior Poster in Training

Pic Storage : Store Pic Path or Convert as Byte???

 
0
  #1
Mar 21st, 2009
Hi,

I'm trying to save some images into my Database of my application. Can I know which of the method below is better and why?

1. Store only the picture path into the database. Retrieve Picture according to its path.

2. Store the Picture in Database as bytes.


Thanks.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 89
Reputation: raul15791 is an unknown quantity at this point 
Solved Threads: 7
raul15791 raul15791 is offline Offline
Junior Poster in Training

Re: Pic Storage : Store Pic Path or Convert as Byte???

 
0
  #2
Mar 25th, 2009
Hi, I did some searching.... Found some related article. Just for reference for those of you who like to know more about this topic.

http://www.webmasterworld.com/forum88/9091.htm


http://databases.aspfaq.com/database...ilesystem.html

http://www.webmaster-talk.com/the-database-forum/63229-save-image-to-db2-as-blob.html
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Pic Storage : Store Pic Path or Convert as Byte???

 
0
  #3
Mar 26th, 2009
I think a better way is convert as byte..
Some trouble can happen if you missing the path of image or moving some pics.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 89
Reputation: raul15791 is an unknown quantity at this point 
Solved Threads: 7
raul15791 raul15791 is offline Offline
Junior Poster in Training

Re: Pic Storage : Store Pic Path or Convert as Byte???

 
0
  #4
Mar 26th, 2009
This is exactly what's in my mind before reading those articles. There are some pros and cons of doing so... You'll know more after you read those articles...
Last edited by raul15791; Mar 26th, 2009 at 2:15 pm.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 5
Reputation: maczoon is an unknown quantity at this point 
Solved Threads: 2
maczoon maczoon is offline Offline
Newbie Poster

Re: Pic Storage : Store Pic Path or Convert as Byte???

 
0
  #5
Apr 4th, 2009
Try MicroSoft example Named Of
VB.NET - Data Access - Read and Write Images from a Database
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC