cancel
Showing results for 
Search instead for 
Did you mean: 
adamtobia5
Nintex Newbie

How to get a document to base64?

Jump to solution

Hello,

Briefing, A Nintex list workflow is published in a SharePoint 2016 Document Library. It will check if the file is a .docx file type. If it is a .docx file type, the workflow would take the file name and convert the document to .pdf file type. At this point, the library contains the .docx and .pdf file. When the .pdf file is available, the workflow should call a web service (copy.asmx) to use the CopyItems web method to create a document in a SharePoint 2010 Document Library. Afterwards, the .docx in the SharePoint 2016 Document Library is to be deleted.

I am successful to creating the .pdf file in the target destination. However, it is shown as 0kb file size. The content of the document is not being populated. Question is: How do I get the .pdf document to encoded to base64 string via calling of a web service? Then using the base64 string to populate the CopyItems web method.

0 Kudos
Reply
4 Replies
adamtobia5
Nintex Newbie

Re: How to get a document to base64?

Jump to solution

Update: I was able resolve this by specifying [FileData] in the <mSmiley Frustratedtream>[FileData]</mSmiley Frustratedtream>

0 Kudos
Reply
brightlight
Nintex Newbie

Re: How to get a document to base64?

Jump to solution
Did you convert the document to base64? If yes, could you post the steps?
0 Kudos
Reply
brightlight
Nintex Newbie

Re: How to get a document to base64?

Jump to solution

@adamtobia5 

Got this working finally.

Reply
adamtobia5
Nintex Newbie

Re: How to get a document to base64?

Jump to solution
I'm happy you were able to get this to work. Sorry, I wasn't able to assist in steps right away.
0 Kudos
Reply