1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
I played around with downloading from the returned stream and got this to work:
$buildPackage = Get-CAPackageVersionAsset -Asset MyAsset.3.55.98.zip -Domain mydomain -DomainOwner <aws_account_id> -Format generic -Namespace mynamespace -Package MyAsset -PackageVersion 3.55.98 -Repository myrepo
$ms = New-Object System.IO.MemoryStream
$buildPackage.Asset.CopyTo($ms)
$bytes = $ms.ToArray()
[IO.File]::WriteAllBytes($DownloadPath, $bytes)
답변함 6달 전