Upload pdf to dropbox

Hello Champs,
Does any one implemented uploading pdf to dropbox, I am using dropbox api and file plugin.

I tried every method of file plugin (ReadAsArrayBuffer, ReadAsBinaryString, ReadAsText) using all that I am able to upload file to dropbox however format of PDF got corrupted upon downloading.

Please let me know if anybody has any solutions on it