Loading a binary file into the database

  • Thread starter Thread starter Anita C
  • Start date Start date
A

Anita C

Hi,
What will be theC# equivalent of:
mStream = New ADODB.Stream
mStream.Type = ADODB.StreamTypeEnum.adTypeBinary
Call mStream.Open()
mStream.LoadFromFile(TmpFile)

rs.Fields("Report").Value = mStream.Read // load the whole file

using ADO.NET.

Thanks in advance
 
Back
Top