A binary value or type in SQL Server is a series of bytes (known as a byte array in some programming languages). Just like char/varchar, there are fixed-length types, binary(1-8000), and variable-length ones, varbinary(1-8000) and varbinary(max).
Sometimes we store this type of data in SQL Tables and lose the source files. This type of data is stored in a binary format which is system formatted.
A PDF file is converted and stored in this format. And the text looks similar to this,
Now to recreate a file from this data is not something that can be created by simple copy-paste.
Here is the process which can be used to get the source file.
Now you might end up getting compilation issues. The reason is all the System Stored Procedures are unavailable.
To solve this we have to enable the Facets Property “OleAutomatedEnabled”