How to upload file Infopath 2010 to SharePoint

Asked By 30 points N/A Posted on -
qa-featured

Dear Experts,

I want to upload file from Infopath 2010 to Sharepoint 2010. I asked few friends but couldn’t find a valid way. Can anyone guide me how infopath upload file can be made?

SHARE
Answered By 240 points N/A #159071

How to upload file Infopath 2010 to SharePoint

qa-featured

Wassup Berth, I believe I can be able to help you in your question, and I will try to do so to the best of my ability. There are usually two types of files that can be uploaded through an infopath form; pictures and files that are not images. This is what you need to do to solve this problem;

Depending on which control you use to store files in an InfoPath form, you may or may not require to write code to upload files stored in an InfoPath form to SharePoint.

 You will require writing code if images are stored in multiple Picture controls in for example a repeating table control, and you want to upload these images to SharePoint.

In the case of files stored in a File Attachment control, you will have to write code that first decodes the base64-encoded string representation of the file into a byte array, and then use either a web service or the SharePoint object model to upload the file from InfoPath to SharePoint.

 

In order to avoid having to go down the administrator-approved deployment route, use SharePoint web services to upload files from InfoPath to SharePoint.

You can upload files from InfoPath to a SharePoint document library, you can also download files from a SharePoint document library and add them to InfoPath form.

Login/Register to Answer

Related Questions