ConvertFrom-ByteArrayToBase64
SYNOPSIS
Converts a byte array to a base64 encoded string.
SYNTAX
ConvertFrom-ByteArrayToBase64 [-ByteArray] <Byte[]> [-Compress] [<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
-Compress
If supplied, the output will be compressed using Gzip.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
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
RELATED LINKS
http://convert.readthedocs.io/en/latest/functions/ConvertFrom-ByteArrayToBase64/