Results 1 to 2 of 2

Thread: adodb.stream File Formatting

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    7

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    7

    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
  •  



Click Here to Expand Forum to Full Width