title: How to upload binary content octetstream in Alfresco by RestSharp?
body: <p>I try put binary file through restful api alfresco, It worked, it has content when i edit text file but that pdf file can't preview, may be the content's encoding is not true? Any one has solution? I use restSharp to do this</p>
  
  <pre><code>IRestRequest requestPutContentFile = new RestRequest(APILocation._CORE_API + "/nodes/" + docNode.Entry.Id + "/content"+"?alf_ticket="+Ticket,Method.PUT);
  requestPutContentFile.AddParameter("application/x-www-form-urlencoded", Content, ParameterType.RequestBody);
  
  IRestResponse responsePutContentFile = client.Execute(requestPutContentFile);
  </code></pre>
  
  <p><a href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNodeContent" rel="nofollow noreferrer">https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNodeContent</a></p>
  
  <p>/alfresco/api/-default-/public/alfresco/versions/1/nodes/{nodeId}/content</p>
  
  <p><a href="https://i.stack.imgur.com/iNDkK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iNDkK.png" alt="enter image description here"></a></p>