Connecting Tech Pros Worldwide Forums | Help | Site Map

Optimal/flexible way to save uploaded image.

Newbie
 
Join Date: Feb 2007
Posts: 7
#1: May 24 '07
Hello to all,

Which one is flexible/optimal solution to save uplaoded image.
Frist save image at server or from where you're site pages are save in any image folder and save only image name or link to database.
Secondly convert image to bite form then save whole bite form image to database.


My friends feel that second one is right choice, but i felt that frist one is correct as conversion procedure and retrival from database is completly time consuming and not correct from web hosting point of view.

Suggest best as technically and praticall true.

Feel free to give all kind of suggestion.

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: May 30 '07

re: Optimal/flexible way to save uploaded image.


I prefer the first method. Is there any particular reason why your friends say the second method is better?
Reply