You can save them as the SQL Binary type if the data is less than 8000 bytes (8K). If you need to store files larger than 8kB, you could save them using the SQL Image type (which simply stores an array of bytes of length up to 2 billior or so). For more information on SQL datatypes, see MSDN's Sql data type table[^]. Once you've stored your pdf or doc files as bytes, you can then get them out of the database, write the bytes to a file, rename the file with the correct extension, and you're good to go.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Moral Muscle The apostle Paul, modernly speaking: Epistles of Paul Judah Himango