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?