ユーザーがアップロードした画像(.jpg)を安全に保存したい。より良い結果とパフォーマンスを得るには、どちらに進むべきか混乱しています。私が見ることができる最良のオプションは次のとおりです。
1. Store the images in database.
//problem : database size get large. lagging performance
2. Store them in a folder in encrypted manner.
//problem : Encryption and decryption on large file slows it down.
3. Place the image as it is in a folder behind 'public_html' in root directory.
//problem : I am unsure as they aren't encrypted.
どちらがより良い方法でしょうか、それとも私が今気づいていない他の「ベストプラクティス」はありますか?