I m loading a PMML document using PMMLDocument class; It worked when I use a XML file path, but now I try loading using a Stream object, but it didn't work.
Notice: I wish to stream the data from a dataset as XML (cuz this PMML xml is inside the database), currently I am able to write a XML file from dataset using dataSet.WriteXML() and then Stream that XML file. But I wish to stream the dataset data as XML WITHOUT having to write an intermediate XML file.
Below is shown:
MemoryStream pmmlStream = new MemoryStream();
PMMLDocument pmmlDocument = new PMMLDocument(pmmlStream);
PMMLEvaluator evaluator = new PMMLEvaluatorFactory().GetPMMLEvaluatorInstance(pmmlDocument);
but I got a error when I try to load the Stream object.
Thank you in advance.