Recently, due to development requirements, we need to separate the two attachments in the infopath form and save them to another document library.
I found less information on the Internet. I have integrated some English documents and learned a little bit about it. I am afraid to share it exclusively.
Main points:
1. code encoding and decoding
2. The entire attachment is stored in a document library as a project.
Code encoding and decoding: the main reference: http://support.microsoft.com/kb/892730/zh-cn? Spid = 11303 & SID = 216, mainly two infopathattachmentencoder. CS and infopathattachmentdecoder. CS ..
The entire attachment is stored as a project in a document library: The saveattachment method is mainly modified.
Because I am usingInfopath form post encoding. C # language is used..
If someone has the same problem, please contact us.