Skip to content

Instantly share code, notes, and snippets.

@ChaseFlorell
ChaseFlorell / HockeyApp.psm1
Created May 22, 2016 21:08
Powershell upload to HockeyApp
#region Private Functions
function Get-AsciiBytes($str){
return [System.Text.Encoding]::ASCII.GetBytes($str)
}
function Write-MultiPartProperty {
param(
[parameter(Mandatory=$true)][System.IO.MemoryStream] $body,
[parameter(Mandatory=$true)][string] $boundary,
[parameter(Mandatory=$true)][string] $key,