Hi,
I am working on Sharepoint 2013 REST API in which I want to upload file into SharePoint using file using add method. I am referring to https://msdn.microsoft.com/EN-US/library/office/dn450841.aspx#bk_FileCollectionAdd
I am able to upload text file but I am not able to upload binary file like pdf, images, docx, etc. file is getting created with the expected name but it is corrupted.
Am I missing anything?
How to upload binary file using REST API through REST Client?