1 Answer
- Newest
- Most votes
- Most comments
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)
answered 10 months ago
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago