Actually i'd like to know if XmlMtomReader reads mime binary parts from the input stream directly? Or does it store them internally before i call ReadContentAsBase64() method?
As I recall (and it's been a while...), XmlMtomReader does the minimal amount of internal storage required, depending on the order in which the MIME parts appear in the input stream. (The MTOM standard allows them to appear in any order).
So if your input stream is, for example:
< a/ >< b >...binary part 1...< /b >< c >...binary part 2...< /c >< /d >
Here's what happens: