954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

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.

raul15791
Junior Poster
102 posts since Jun 2008
Reputation Points: 37
Solved Threads: 7
 
raul15791
Junior Poster
102 posts since Jun 2008
Reputation Points: 37
Solved Threads: 7
 

I think a better way is convert as byte..
Some trouble can happen if you missing the path of image or moving some pics.

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

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... :)

raul15791
Junior Poster
102 posts since Jun 2008
Reputation Points: 37
Solved Threads: 7
 

Try MicroSoft example Named Of
VB.NET - Data Access - Read and Write Images from a Database

maczoon
Newbie Poster
5 posts since Mar 2009
Reputation Points: 11
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You