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()
Zulu79 0 Newbie Poster
tinstaafl 1,176 Posting Maven
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.