Storing a binary file in memory

Hi,

I want to load the contents of a file into a BLOB column of a database, as part of a batch process. Therefore I'd like to read the entire contents of the file into memory and store it as a byte array at the start of the process.

Can someone suggest how I do that please

Thanks
LVL 4
gamesmeisterAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Ready1Connect With a Mentor Commented:
this post should help you out. It teaches  you how to save and retrieve images into a database. The process should be the same for any file.

http://www.codeproject.com/cs/database/UploadPicturesSQLServer.asp

Regards,
Ready1
0
 
devsolnsCommented:
0
 
gamesmeisterAuthor Commented:
Thanks guys
0
All Courses

From novice to tech pro — start learning today.