By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,034 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,034 IT Pros & Developers. It's quick & easy.

Save binary data VS path file

P: 4
I was wondering what is best for a website..
If I give the users the possibilite to save their pictures into the DB as binary data or to save them into a folder in a server.
In one case I have to convert the binary data to image, and in the other way I just save the path of the picture..

So.. what is best?

Apr 1 '12 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 100+
P: 465
I've always tried to steer people from storing images in the database, it's rough on resources and will, in time, start wreaking havoc on your performance. I would store them in a directory on your site and store the image info (path, name, etc) in your database.
Apr 1 '12 #2

P: 4
Thank you very much for the information :)
Apr 1 '12 #3

Expert Mod 100+
P: 465
No problem, glad I could help :)
Apr 1 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.