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:
Dim bytData() As Byte Open "C:\test.rtf" For Binary As #1 ReDim bytData(FileLen("C:\test.rtf")) Get #1, , bytData Close #1 rs_dream.Fields("RTF").AppendChunk bytData 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...




Reply With Quote