I want to save pdf file in database. I am searching what is the best way to save for pdf file in database. I am confusing among varbinary(max) and image. What should i use?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish KumarPosted Jul 20, 2017, 3:33 AM
Ramesh SinghPosted Jul 19, 2017, 10:16 AM
Rajkiran SwainPosted Jun 9, 2017, 5:43 AM
My opinion is that you do not really want to store the PDF in a DB. At the risk of arguing semantics, you probably want to store either the contents of the PDF, or the physical location of the PDF. Which one you choose to store depends on what you are going to do with the PDF.
If you are simply going to echo the PDf back to someone when requested, you are better off storing the physical location in a normal varchar field, and storing the PDF in a file system.