Hi,
I'm trying to convert this statement in vb.net into Powershell syntax.
vb.net
SP.File.SaveBinaryDirect(_ctx, "/test.pdf", fs, True)
Powershell
[Microsoft.SharePoint.Client.File]::SaveBinaryDirect($SPContext, "/test.pdf", [System.IO.Stream]$FileStream, $true)
After executing, I got the error as follows:
Unable to find type [Microsoft.Sharepoint.Client.File]: make sure that the assembly containing this type is loaded.
I'm using Powershell 2.0 and SharePoint 2010.
Please advise.
Thanks,
Brew