I wrote a short article ona possible wayto deal with base64 encoded documents in a incoming XML message. The solution works by redirectinga stream from and to fileon the right moment.A sample (with source)is included.
You can find it here.
Hope you find this useful