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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top