Hello I am working on a program with an Access Database that should store .rtf (RichTextFormat) files.

With this code I can put "test.rtf" Binary in my database where 'rs_dream' is a recordset and 'RTF' is a Datafield of the type OLE Object

VB Code:
  1. Dim bytData() As Byte
  2.  
  3. Open "C:\test.rtf" For Binary As #1
  4.                     ReDim bytData(FileLen("C:\test.rtf"))
  5.                        
  6.                     Get #1, , bytData
  7.                     Close #1
  8.                    
  9.     rs_dream.Fields("RTF").AppendChunk bytData
  10.     rs_dream.Update

Now my question is how can I retrieve the .rtf file from my database and save it?
I tried a lot with GetChunk but It didn't work...