Command
ConvertFrom-ImageBase64
Converts a Base64 encoded string into an image file.
Syntax
ConvertFrom-ImageBase64
[-Base64] <String>
[-Open]
[-OutputPath] <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Save the Base64 content to a PNG file
ConvertFrom-ImageBase64 -Base64 $content -OutputPath out.pngDecode and open the image
ConvertFrom-ImageBase64 -Base64 $content -OutputPath out.png -OpenParameters
- -Base64 String
- Base64 encoded image data.
- -Open SwitchParameter
- Open the newly created file after saving.
- -OutputPath String
- Path where the image will be written.
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.