Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

ConvertFrom-Base64

ConvertFrom-Base64

pscx.dll

Synopsis

PSCX Cmdlet: Converts base64 encoded string to byte array.

Syntax

ConvertFrom-Base64 [-Base64Text] [-OutputPath] [<CommonParameters>]

Detailed Description

Converts base64 encoded string to byte array.

Parameters

-Base64Text <String[]>

Base64 encoded string to be converted into byte arary.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-OutputPath <String>

The path to write the results to. The results are written in binary format.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

If an OutputPath is not specified then an array of bytes is output. Using the OutputPath parameter is faster than using 'set-content -enc byte foo.dll' to write the output to a file.

Examples

-------------------------- EXAMPLE 1 --------------------------

Converts the Base64 string in $b64 to a byte array and stores it in the foo.dll file.

        $b64 | ConvertFrom-Base64 -OutputPath foo.dll
      

-------------------------- EXAMPLE 2 --------------------------

Converts the Base64 string in $b64 to a byte array and stores it in the foo.dll file.

        ConvertFrom-Base64 -Base64Text $b64 -OutputPath foo.dll
      

ConvertTo-Base64