I'm
writing a function which reads a file and writes the data out to a SQL column defined as varbinary(max).
I have this code to read the data.
Dim buffer As Byte() = New Byte(CInt(len) - 1) {}
fu.FileContent.Read(buffer, 0, buffer.Length)
Go to the complete details ...