Screen-Cast: Converting Open XML files to/from Base 64 Encoded ASCII by using PowerTools for Open XML

Sometimes we need to use a ‘template’ or ‘source’ Open XML document from within our C#, VB.NET, PowerShell, or JavaScript program. One convenient way is to convert the binary Open XML file to base 64 encoded ASCII, and to embed the document in our program as a string literal. This video explains why we want to do this, and explains the ConvertTo-Base64 Cmdlet that makes it super-easy for us to write this variety of code.

In the next screen-cast, when I discuss the New-Docx Cmdlet in detail, we’ll see how the New-Docx cmdlet makes use of the ConvertTo-Base64 and ConvertFrom-Base64 Cmdlets.