This function is part of the OZOFiles PowerShell Module.
Returns a Base-64 string representing a valid file, or "File not found" if the file does not exist or cannot be read.
Get-OZOFileToBase64
-Path <String>
| Parameter | Description |
|---|---|
Path |
The path to the file to convert to a base-64 string. |
Get-OZOFileToBase64 -Path ".\README.md"
IyBPWk8gUG93ZXJTaGVsbCBNb2R1bGUgSW5zdGFsbGF... <snip>System.String