Don't think there would be much of a code difference other than ContentType. All such data - image, PDF will be stored in binary format - code remain same - read data in bytes and store it.
The additional information you need to store in DB along with bytes is the content type (if you plan to store multiple forms of data) such that while you retrieve back you know what that byte data is for and then make use of it to display back as an image or a pdf.
Sample code if it's only PDF then you know content type is fixed so no need to store:
Dim filebytes As Byte() = File.ReadAllBytes(pathToFile)
Using con As SqlConnection = New SqlConnection(strConnect)
Using cmd As SqlCommand = New SqlCommand("INSERT INTO MyTable (PDFData) VALUES (@PDFFile)", con)