What is the best way to store and manipulate files on a website? and why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the best way to store and manipulate files on a website? and why?

1. Store entire file as binary BLOB in the database 2. Store the files on a directory on the server, and their paths as a string in the database

26th Jan 2020, 6:10 PM
ihab 🌼
ihab 🌼 - avatar
1 Answer
+ 1
// In case of file's i prefer storing in server directory's , It will optimize your database and will be small in size if you export and easy to manage
26th Jan 2020, 6:12 PM
Sudarshan Rai
Sudarshan Rai - avatar