API Reference
Command
ConvertFrom-ImageBase64
Converts a Base64 encoded string into an image file.
Remarks
Converts a Base64 encoded string into an image file.
Examples
Save the Base64 content to a PNG file
ConvertFrom-ImageBase64 -Base64 $content -OutputPath out.png
Decode and open the image
ConvertFrom-ImageBase64 -Base64 $content -OutputPath out.png -Open
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
ConvertFrom-ImageBase64 -Base64 <String> [-Open] -OutputPath <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Base64 String
- Base64 encoded image data.
- Open SwitchParameter
- Open the newly created file after saving.
- OutputPath String
- Path where the image will be written.