Any help with store a file in a DB ?

  • Thread starter Thread starter Rastarizer
  • Start date Start date
R

Rastarizer

I use VB .NET 2003 and I want to store into a binary field of a SqlServer
2003 table a File that I got on my hard disk.

Does anyone know how can I do that ?

I also use an OpenFileDialog component to get the file name and the path.
I got already a connection to my DB

and the only problem is that I don't know how to store the file into the
table ?
with the help of a variable first ? and then to insert it into the table in
a binary field ?
 
¤ I use VB .NET 2003 and I want to store into a binary field of a SqlServer
¤ 2003 table a File that I got on my hard disk.
¤
¤ Does anyone know how can I do that ?
¤
¤ I also use an OpenFileDialog component to get the file name and the path.
¤ I got already a connection to my DB
¤
¤ and the only problem is that I don't know how to store the file into the
¤ table ?
¤ with the help of a variable first ? and then to insert it into the table in
¤ a binary field ?

See the following:

How To Read and Write BLOB Data by Using ADO.NET with Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;308042


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top