NOTE: Qdabra.com now has a package called qRules, available by clicking this link (or clicking DOWNLOAD above). In it you'll find the ability to upload both file and image attachments.
This solution shows how you can copy InfoPath attachments to SharePoint document library and convert the Base64 string attachment in your InfoPath form into a link to the uploaded SharePoint document. Follow the steps below to see how the solution works.
1. Download the Solution Pack by clicking on the link above.
2. Extract the contents of the ImageAttachments.zip file to your local folder. For the purposes of this example, extract the contents to C:\ drive. The sample InfoPath Form source files would then be located in this folder: C:\ImageAttachments\Attachment\InfoPath Form Template.
3. Open ViewOptions.xml in a text editor such as notepad. You will need to modify the URL to point to your SharePoint site's document library. Save ViewOptions.xml.
4. Right-click on manifest.xsf, and select Design. Preview your form. InfoPath will look for the related Visual Basic or C# code file, if prompted, click on Browse.
5. Browse to C:\ImageAttachments\Attachment\Attachment.csproj.
6. Test the form in Preview mode by attaching a sample file. You will notice that a link to the uploaded SharePoint document will be created under the Attachment Link column. Clicking this link will open the uploaded document/file, and in your SharePoint document library, you will see a list of all the documents you have uploaded.
Note: this sample solution uses the taskpane to upload and convert the image attachments to SharePoint documents. This means that the form cannot be used in the browser.