|
-
Feb 15th, 2004, 07:10 PM
#1
Thread Starter
New Member
adodb.stream File Formatting
Hi all.
I'm using ADODB.STREAM to extract a database embedded word document. However it seems to lose its formatting. When the document generated is opened its opened as if it was all text, i.e. lot of junk characters mixed in.
Any ideas?
Thanks,
Dim strSQL As String
Dim ors As New ADODB.Recordset
Dim FileStream As New ADODB.Stream
FileStream.Type = adTypeBinary
ors.Open strSQL, oConn
FileStream.Open
FileStream.Write ors!BlobFile
FileStreamSaveToFile "C:\BlobFile.doc", adSaveCreateOverWrite
FileStream.Close
ors.Close
-
Feb 17th, 2004, 09:10 AM
#2
Thread Starter
New Member
More Information - BLOB In via C++ out Via VB
When a document is embedded into a database BLOB file using C++ methods, can it even be extracted using stream object methods in VB?
I don't know C++ but believe that it uses some kind of container or adds some kind of header information in the BLOB along with the document.
Can these headers be parsed out? More precisely can the document or other attachment be parsed out using stream?
If anyone know anything about this topic, I'd appreciate the help, even names of publications I can pick up to expand my knowledge horizon.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|