This line:
Microsoft.SharePoint.Client.File.OpenBinaryDirect(
clientContext,
item["My Document.docx"].ToString()
Is wrong, the proper syntax is to specify the Server Relative URL to the file:
public static FileInformation OpenBinaryDirect(
ClientContext context,
string serverRelativeUrl
)
Your line should look something like this:
Microsoft.SharePoint.Client.File.OpenBinaryDirect(
clientContext,
"/My Document.docx"
David Sterling - http://davidmsterling.blogspot.com - http://www.sterling-consulting.com - http://www.sharepoint-blog.com