I am currently using an adodb.stream to save a word doc to a oracle blob field and retrieve it later using a stream. I have a document that is 1.23 mb in the blob, but when it is streamed back to a file, it get truncated to 1024kb.
This is the code that is used
' Create ADO stream object
Set mStream = New ADODB.Stream
' Set it to a binary file type
mStream.Type = adTypeBinary
' Open it
mStream.Open
Dim CreationDate As Date
' This writes the image from the blob field to the buffer
mStream.Write mRS.Fields("image").Value
' This saves the stream to a file on disk
mStream.SaveToFile tGetAppPath & FileName, adSaveCreateOverWrite
mStream.Close
Set mStream = Nothing
is there some sort of default value that cuts off at 1024 kb?
Both of the pcs used when I get this are using XP. I don't know if that makes a difference. We are using data object 2.7
This is the code that is used
' Create ADO stream object
Set mStream = New ADODB.Stream
' Set it to a binary file type
mStream.Type = adTypeBinary
' Open it
mStream.Open
Dim CreationDate As Date
' This writes the image from the blob field to the buffer
mStream.Write mRS.Fields("image").Value
' This saves the stream to a file on disk
mStream.SaveToFile tGetAppPath & FileName, adSaveCreateOverWrite
mStream.Close
Set mStream = Nothing
is there some sort of default value that cuts off at 1024 kb?
Both of the pcs used when I get this are using XP. I don't know if that makes a difference. We are using data object 2.7