I have an application where I allow users to upload files, mainly PDF and Word documents. These files are stored in a varbinary field in the database. For what it is worth,
You need a layer of some code to extract the type and have knowledge of the format. To SQL, it's just raw data