PowerShell PowerShell
/pixel.gif 요청에 빈 GIF로 응답하는 PowerShell용 PowerShell 스니펫입니다. GIF는 시작할 때 한 번만 디코딩합니다.
PowerShell PowerShell
# Works in Windows PowerShell 5.1 and PowerShell 7+ (.NET needs an absolute path).
$bytes = [Convert]::FromBase64String('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==')
[IO.File]::WriteAllBytes((Join-Path $PWD 'pixel.gif'), $bytes)
이 스니펫은 실행해 보고, 반환된 바이트를 비교했습니다.