Save the photos to the web server, as you are going to develop a social network site, so this will be a huge burden for the database. Because several times you have to process c ++ MB images. Therefore, only store the link in BD.
From the file you can easily play with photos and even easily transfer them without any consequences for the database.
source
share