I am creating a pdf file on a server and returning the binary stream of pdf formatted data via a function return in VB to a middle tier DLL. When I get the stream on the receiving end I open up a binary file and then dump the info into that file and close it. It works fine with one exception - it seems to want to write out four bytes at the beginning of the file which break my logic. These characters are (Hex) 08-00-9C-35
They are not part of the stream.
Can any body tell me what is going on here and how I can prevent it from happening:
the code is:
datastream = object.returnstream(arg1,arg2)
open "c:\junk.pdf" for binary as #1 (i also tried specifying the len as the length of the datastream)
put #1, , datastream ( I also tried put #1,1,datastream