Loading word doc from database

Here's the problem.

I have word documents saved in database in fields that have image data type. I figured out how to save them into database from hard drive by giving files address but the problem is i dont know how to load that binary data back into another word doc and open it. The way i see it i need to do the following:

1. retrieve binary data from db (done)

2. create temp doc file on hard drive

3. load binary into doc file and save it

4. open word application and load the file

I know how to do the 1st and 4th but i cant figure out the 2nd and 3rd step.

If anyone could give me some example of how that could be done or at least name some classes which provide the needed functionality for this kind of job it would help me a lot.

[803 byte] By [Antinsh] at [2008-1-8]
# 1

My.Computer.FileSystem.WriteAllBytes(FileName, binaryData, False)

Process.Start("word.exe -FileName")

Swade at 2007-10-2 > top of Msdn Tech,Visual Basic,Visual Basic Language...