I have a InfoPath form that i'm building which submits all of its information via C# code to a SharePoint list (Using UpdateListItem). I've gotten everything sumitting to the list just fine. I now want to add a File Attachment control so that a user can attach a price quote to the form.
Is there a way to submit that file attachment to a Sharepoint list (specifically to the Attachment Column)? I've found the MSDN article http://support.microsoft.com/kb/892730 explaining how to encode and decode the base64 but i can't seem to get it to work.
I've also tried the method described in http://www.infopathdev.com/files/folders/examples/entry29401.aspx and I can get the example to work, but havent figured out how to combine this example with my form. I would be OK with this method of posting the file attachment to a document library because then i could just link the item in the document library to the item in the sharepoint list.
I also found in this article http://www.bizsupportonline.net/blog/2009/01/submit-infopath-form-sharepoint-list-attachment/ that i could just make the entire form an attachment, which would also work because then the purchasing department could just open the attachment (open the whole form and get access to the attached file.) but i've been unable to get the example in the article to work, if anyone has some insite to this example that would be a great help as well.