Dim pdf As String 
        Dim pdfByteArray As Byte() '
        Dim lLenPdf As Integer = Len("C:\file.pdf")
        Dim mypdf(100000)() As Byte 
        Dim numBytes As Long = pdfFile.Length '
        Dim data As Byte() = System.IO.File.ReadAllBytes("C:\file.pdf")
        myInitialBytes.Add(New Byte() {&H0, &H25})

StoredProc….. 



SQL Connection code….
 Dim Local_Connection As New  _
        Local_Connection.Open()


        Local_Command.CommandText = "Insertpdf"
        Local_Command.CommandType = CommandType.StoredProcedure
        Local_Command.Connection = Local_Connection
        Local_Command.Parameters.Clear()

        Local_Command.CommandTimeout = 30

        Local_Connection.Close()

It looks like you're reading the file and storing the bytes in data. But, no where is there any code that tries to send data to the database

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.