external help file: Convert-help.xml Module Name: Convert online version: http://convert.readthedocs.io/en/latest/functions/ConvertFrom-ByteArrayToBase64/ schema: 2.0.0


ConvertFrom-ByteArrayToBase64

SYNOPSIS

Converts a byte array to a base64 encoded string.

SYNTAX

ConvertFrom-ByteArrayToBase64 [-ByteArray] <Byte[]> [<CommonParameters>]

DESCRIPTION

Converts a byte array to a base64 encoded string.

EXAMPLES

EXAMPLE 1

$bytes = ConvertFrom-StringToCompressedByteArray -String 'A string'
ConvertFrom-ByteArrayToBase64 -ByteArray $bytes

H4sIAAAAAAAAC3NUKC4pysxLBwCMN9RgCAAAAA==

PARAMETERS

-ByteArray

A byte array object for conversion.

Type: Byte[]
Parameter Sets: (All)
Aliases: Bytes

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

[String[]]

NOTES

http://convert.readthedocs.io/en/latest/functions/ConvertFrom-ByteArrayToBase64/