I am using SSIS 2012. I have a script component with an output column of type DT_TEXT. (It is XML from a web page.)
I have an OLE DB Destination using the Native OLD DB\Oracle Provider for OLE DB, and the table for that field is defined as a CLOB.
This question seems similar: SSIS Script Component won't allow text Stream Output. And this seems to give an answer: http://www.rad.pasfu.com/index.php?/archives/35-How-to-Fill-NTEXT-Column-from-Script-Component-SSIS.html
Within the Script Component I am getting my XML as a String, which the docs say can hold up to 2GB. I am having difficulty assigning it to my Output0Buffer (DT_TEXT). Any attempt to use AddBlobData gives an error.
// Output0Buffer.AddRow();
// Output0Buffer.forecastXML = forecastXML;
// Output0Buffer.AddBlobData(forecastXML);
// Output0Buffer.LargeCol.AddBlobData(forecastXML);
// Output0Buffer.LargeCol.AddBlobData(System.Text.Encoding.UTF8.GetBytes(forecastXML));
Those are some of my attempts, but none of them compile. That last one gives the error: 'Output0Buffer' does not contain a definition for 'LargeCol' and no extension method 'LargeCol' accepting a first argument of type 'Output0Buffer' could be found (are you missing a using directive or an assembly reference?)
How do I get the text stream from the script component to the oracle destination?