What is the best way to upload a custom portrait
It definitely depends on the number of images that need to be stored.
If you store them on the filesystem, you just need to store the url or image location in the database. To resize, you can do so in real time, using components to achieve changes depending on the language you are using. For .NET ASPjpeg is very good, but you can manipulate the image using the System.Drawing.Imaging class. There is no need to manage database data fields or BLOB fields.
On the other hand, storing images in a database can make it too large to back up or load depending on the number of records, even if you are running SQL Server but have everything in one place. Service is faster.
The problem with storing images in the file system is the cleanup procedure, if you delete the entry, you need to delete the image in the file system as well to prevent garbage from being saved.
a source to share