I am trying to get a document from document library.I am getting the file but I can't get its binary value.
$.ajax({
url: fileUrl,
binaryStringResponseBody: true,
headers: {
"Accept": "application/json; odata=verbose",
"X-RequestDigest": 'digest'
},
type: "GET"
})
.done(Function.createDelegate(this, readFileSuccess))
.error(Function.createDelegate(this, readFileFailure));
but it didn't give me a binary value for the file. I need to get binary value and store it to local storage ( Web SQL ).
How to get the binary value?