Using .NET (in an SSIS package):
I've got an XML string in memory which I need to save to a varbinary column in Sql Server, as an XML file.
It seems like I should be able to avoid actually saving a .xml file to disk, and do all of this in memory, but I'm not sure how. My initial thought was to use the File class in System.IO, but this class seems to require a file on disk.
Is there a way in memory to convert the XML string to its bytes and save those to the DB?
Thanks.
(I'm coding in VB but naturally C# examples are fine too).