Read stream from XmlReader, base64 decode it and write result to file
问题 Basically, I want to extract the stream from the XmlReader and directly base64 decode it to a file. The structure of the XML file can be seen here. To get the value I have to use ReadInnerXml() . Is it possible to use ReadValueChunk instead? Here is my current code: using (XmlReader reader = XmlReader.Create("/your/path/47311.xml")) { while(reader.Read()) { if (reader.IsStartElement () && reader.NodeType == XmlNodeType.Element) { switch (reader.Name) { case "ttOutputRow": reader