I have been doing a bit of work with PowerShell v3 (CTP2 from here) and its new Invoke-RestMethod like so:
Invoke-RestMethod -Uri $dest -method PUT -Credential $cred -InFile $file
However, I'd like to use this for pushing very large binary objects, and therefore like be able to push a range of bytes from a large binary file.
For example, if I have a 20Gb VHD, I would like to break it up into chunks of say, 5Gb each (without splitting and saving the individual chunks first) and PUT/POST these to BLOB storage like S3, Rackspace, Azure, etc. I am also assuming the chunk size is larger than the available memory.
I've read Get-Content does not work very efficiently on large binary files, but this doesn't seem like an obscure requirement. Does anyone have any appraoches which could be used for this, particularly in conjunction with PowerShell's new Invoke-RestMethod?