Powershell GUI encode decode images
Recently I was working on the one of my project, In the same I required to add few images to GUI, and needed to encode and decode images in the script so no external file is required to port incase if I want to share and there will be only sole ps1 script. Here in below video not a single external picture image is used. They are for onetime encoded with powershell as base64 string and then same string is used to decode in the script. Here I have download all the required images from internet as shown in below screenshot and showing demo for one image only, for other images need you can follow same procedure to convert encode image. With below one-liner command I encoded image to base64 string, yellow highlighted text is the image file path. Converted string is directly copied to clipboard. [ convert ] ::ToBase64String (( get-content ' C:TempIconstwitter.png ' - encoding...