Storing and Retrieving a Binary File

G

Guest

I'm very new to VB.NET, but I'm trying to figure out how to store a binary
file in SQL Server and then later retrieve it and recreate the file. I've
used the BinaryReader and BinaryWriter to read and write binary files, but I
haven't figured out how to convert what I get into something that I can store
in SQL Server (I'm guessing I would have to store it in an image field). Has
anyone done this, or know how to do it? Any help would be much appreciated...
 
G

Guest

Oh, I should probably mention that I'm reading the binary file in as a byte
array. I just don't know how to convert the byte array into a data type that
can be passed in an insert statement to the database.
 

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

Top