Skip to main content
Nintex Community Menu Bar
Solved

How to get a document to base64?

  • Jul 6, 2018 2:15 AM UTC
  • 5 replies
  • 517 views
  • Translate All

Forum|alt.badge.img+5

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.

Best answer by adamtobia5

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

View original

5 replies

Forum|alt.badge.img+5
  • Author
  • Nintex Partner
  • Answer
  • Jul 6, 2018 6:00 AM UTC

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

Translate

Forum|alt.badge.img+9
Did you convert the document to base64? If yes, could you post the steps?
Translate

Forum|alt.badge.img+9

@adamtobia5 

Got this working finally.

Translate

Forum|alt.badge.img+5
  • Author
  • Nintex Partner
  • Aug 9, 2019 3:29 PM UTC
I'm happy you were able to get this to work. Sorry, I wasn't able to assist in steps right away.
Translate

  • Oct 14, 2021 12:33 AM UTC

@adamtobia5 @brightlight  Do you mind sharing how you converted a document to base64?

I'm using Nintex cloud, trying a bunch of web services but not getting very far.

 

Thank you!

Translate