943,840 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 842
  • VB.NET RSS
Mar 21st, 2009
0

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

Expand Post »
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.
Reputation Points: 37
Solved Threads: 7
Junior Poster
raul15791 is offline Offline
102 posts
since Jun 2008
Mar 25th, 2009
0

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

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
Reputation Points: 37
Solved Threads: 7
Junior Poster
raul15791 is offline Offline
102 posts
since Jun 2008
Mar 26th, 2009
0

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

I think a better way is convert as byte..
Some trouble can happen if you missing the path of image or moving some pics.
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,140 posts
since Nov 2007
Mar 26th, 2009
0

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

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.
Reputation Points: 37
Solved Threads: 7
Junior Poster
raul15791 is offline Offline
102 posts
since Jun 2008
Apr 4th, 2009
0

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

Try MicroSoft example Named Of
VB.NET - Data Access - Read and Write Images from a Database
Reputation Points: 11
Solved Threads: 2
Newbie Poster
maczoon is offline Offline
5 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: why this thing is not working
Next Thread in VB.NET Forum Timeline: Logon Failed in Crystal Reports





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC