By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 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?

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


PsychoCoder
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
@PsychoCoder
Thank you very much for the information :)
Apr 1 '12 #3

PsychoCoder
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.