Hi all,
I have a process, where I take a dataset from an SQL call, and need to write
an XML file from that dataset.
The data set can contain 10's of tables, each with 100's of rows, and I have
no way of knowing what the tables are, or what they contain.
I am currently using the Dataset.WriteXM L method passing an XMLWriter.
This is all currently working.
However, I now have to do the same thing but some of the datasets contain
binary data. I have tried this with just a WriteXML and a ReadXML from the
containing dataset. But the dataset that is created that reads the XML, does
not contain the correct binary data.
I know it is possible to write binary data using the XMLWriter.Write Base64
method, but that would mean I would need to code the entire dataset write
with individual XMLWriter.Write xxxxx methods, which I would like to avoid
doing.
Is there any way, using Dataset.WriteXM L to have the binary data, written
out in Base64 automatically?
Possibly changing the actual data in the dataset prior to writing the XML,
or even if I really had to I could modify the output from SQL in some way.
As always, an and all help is appreciated, and thanks in advance for your
replies.
Simon.
I have a process, where I take a dataset from an SQL call, and need to write
an XML file from that dataset.
The data set can contain 10's of tables, each with 100's of rows, and I have
no way of knowing what the tables are, or what they contain.
I am currently using the Dataset.WriteXM L method passing an XMLWriter.
This is all currently working.
However, I now have to do the same thing but some of the datasets contain
binary data. I have tried this with just a WriteXML and a ReadXML from the
containing dataset. But the dataset that is created that reads the XML, does
not contain the correct binary data.
I know it is possible to write binary data using the XMLWriter.Write Base64
method, but that would mean I would need to code the entire dataset write
with individual XMLWriter.Write xxxxx methods, which I would like to avoid
doing.
Is there any way, using Dataset.WriteXM L to have the binary data, written
out in Base64 automatically?
Possibly changing the actual data in the dataset prior to writing the XML,
or even if I really had to I could modify the output from SQL in some way.
As always, an and all help is appreciated, and thanks in advance for your
replies.
Simon.
Comment