Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Files as Binary?

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
0
0
CA
Hey guys,

We want to store a variety of files in our sql server database as strait binary (in a BLOB format-ish). Any thoughts on how this is accomplished within the framework?

Thanks,

D
 
If the files are on the hard-disk you can read it in as a giant byte-array and start from there.
Look in help for filestream and the different dataypes available in your specific database.
 
download 101 samples from microsoft. There is a sample of how to read and write image file.(binary)
 
Younguser, thanks for the tip about the 101 samples, I'll check it out.

Mick, thanks as well. unfortunately, we need to be able to do this all from within memory (there will be no hard-copy of the files on the disks)

Thanks guys,

D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top