Last post Aug 09, 2011 10:21 AM by Argg
Aug 08, 2011 11:15 AM|yadiermolina|LINK
I am working on a Real-estate website for a client. I was wondering, what's the best way to save the images.
At the moment i create thumbnails and four other sizes per orginal image. Is it recomended to save in db or keep real files? Traffic is high.
Thanks for any help.
Aug 08, 2011 11:17 AM|XIII|LINK
save them on disk and only keep a reference in the database to the path.
Aug 09, 2011 08:48 AM|codeseed|LINK
Images could be stored in both ways:
The best way which i would suggest you is the second. It will consume less bandwidth and make your transactions faster
Aug 09, 2011 10:21 AM|Argg|LINK
Save the resized images and the original on the disk. Don't forget to save the original in case your file size requirements ever change and also don't forget to set proper caching headers in IIS so that proxies and what not can take some of the load from
the server. Optional serve the media from a cookieless domain (e.g. http://images.mydomain.com) to cut down on even more traffic.