Possible duplicate:Custom images - database and file system storage
Hello! Where should I store photos for Facebook-like apps? locally on the server in a folder or upload them to a database? I am not going to make this application commercial.
Store images in the file system (folders) and save the path in the database.
EDIT:
Found an interesting article on how Facebook handles image storage:
Facebook: Needle in a Haystack: Effectively Store Billion Photos
Some facts from the above article:
, . , , .. . ,/home/username/appfiles/ . , image_location:/home/username/appfiles/image_file_name.
, , - , , , .
Source: https://habr.com/ru/post/1782169/More articles:Calling a local function using jQuery - jqueryReCaptcha Form Handling? - pythonЕсть ли какой-либо эквивалент ASP.NET ViewState в других веб-технологиях? - asp.netОптимизатор CSS для преобразования в сокращенной форме? - optimizationRetina / High res screen capture software - iphoneHow to copy fisheye panorama using css3? - javascriptInterview LCA Problem - algorithmStoring inputs in two linked arrays - javaКак я могу отправить прямой поток видео на удаленный сервер с моего телефона! - javaWhy would I delete the index.html file in the rails application to display the controller for the root directory? - ruby-on-railsAll Articles