I've been able to encode the files themselves, but the first portion of the attachment in Base64 appears to be specific to InfoPath. This is even documented in the URL below and I found some VB code, but I don't have the background to understand it.
I have an example below. I just need to figure out what to encode for the ...