View Single Post
  #1 (permalink)  
Old March 16th, 2006, 10:31 PM
clk1022 clk1022 is offline
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML binary file to ADO stream object

What I am trying to do is that I will store an email template on the server-side, which may contain attachments(any types), when a user wants to send an email, the server will return a XML file contains all of the information about this email. After parsing the XML, I will send an email using "COD.Message". I have resolved all of the problem besides the attachment.

How can I covert a binary file from the XML file (which is string) to an ADO Stream object? I have tried Stream.Write(content)/Stream.WriteText(content), but none of these are working. Does anyone have any idea how to do that?