I worked a bit with PowerShell v3 (CTP2 from here ) and its new Invoke-RestMethod method:
Invoke-RestMethod -Uri $ dest -mode PUT -Credential $ cred -InFile $ file
However, I would like to use this to push very large binary objects, and therefore, I would like to push a range of bytes from a large binary.
For example, if I have a VHD of 20Gb, I would like to break it into pieces, say, 5Gb each (without splitting and saving individual fragments) and PUT / POST them in the BLOB storage, for example S3, Rackspace, Azure, etc. I also assume the chunk size is larger than the available memory.
I read that Get-Content does not work very well on large binary files, but this does not seem like an obscure requirement. Does anyone have any ratings that can be used for this, especially in combination with the new PowerShell Invoke-RestMethod?
source share