And sample request should look like so
== Headers ==
Authorization Basic YWRtaW5pc3RyYXRvcjp2bXdAcmUx
Content-Disposition: form-data; name="categoryId"
Content-Disposition: form-data; name="file"; filename="Content_byte1.workflow"
binary file content
You are a savior!!!!!
I had to change line 71 to $file.FullName instead of $file.Name since I wasn't running under the same directory as the workflow exports - but all in all - works perfectly!!!!
$b = [System.IO.File]::ReadAllBytes($file.FullName)
You are awesome! Thanks so much! Now I just need to learn what you did
Thanks so much! I'm working on a couple of scripts for migration, in which I'll probably end up posting on my blog - none the less I'll post back here and give you the credit due!!!
NOTE: there were a couple minor errors in the export script that I have resolved.
I have added both the import-workflow.ps1 (with updated line 71) and export-workflow.ps1 to my github repository here: http://bit.ly/vroClientScripts