1
votes

I have an infopath form published to a sharepoint subsite. All the records are stored there. I can add attachments through file upload control but How do I access both their file names and the data from an external application through the client object model. I can access the xml but i don't see the attachments. I also saw that there is supposed to be a folder called attachments with the an listitem id and the attachments but I don't see that either. I am able to download and open the attachments from the sharepoint webpage infopath form so I know there are there. I am in sharepoint 2013 and infopath 2013 office 365. Thanks Dave

1

1 Answers

0
votes

Attachments are stored within InfoPath XML files as Base64 encoded strings. You can access them programatically by parsing the XML, decoding the Base64 string, and then using information from Microsoft's site to determine the file's size, name, and contents. Microsoft provides an example on their site using C#, but you can do this using any language you want. Let me know if you have additional questions.