So, to start out with, I'm using this code right here http://support.microsoft.com/kb/892730 from the Knowledge Base article.
I open up a new InfoPathAttachmentEncoder, navigate to my image (it all works) and then try and assign the Base64Encoding value to the field that is the picture field in the data source.
Every time I do, I get a "schema validation found non-data type errors" error thrown by Visual Studio. I've looked at the encoded date, and it seems to be doing the translation just fine... I'm only using the VSTA, if that matters, and here's my exact code:
InfoPathAttachmentEncoder ie = new InfoPathAttachmentEncoder("c:\\atb\\2_bigger.png");
DOM.SelectSingleNode("/my:myFields/my:PersonsInformation/my:personPicField", NamespaceManager).SetValue(ie.ToBase64String());
Thoughts?