byte array to pdf
You shouldn’t be using the BinaryFormatter for this – that’s for serializing .Net types to a binary file so they can be read back again as .Net types. If it’s stored in the database, hopefully, as a varbinary – then all you need to do is get the byte array from that (that will depend … Read more