A file stored on the server will be a regular file file. But databases have tables for storing data. So, when you want to save the file in the database, there is a special field, which is a field Binary Large Objects (BLOB). This allows you to store a stream of bytes in the database just like any other field. It does not save the file type and any other attributes that the file system can support. You must know the type of file when reading from the database. It is usually stored in another text field in the same table.
source
share