How to store entite pdf to Byte array (Var binary)

I want to store entire PDF document to sql database. So I am planning to convert pdf document to Byte array. So how to perform this conversion.

HI,

How about the following expression?

arrBytePdf = System.IO.File.ReadAllBytes("yourPDFfilename")

Regards,