Created
April 25, 2019 12:23
-
-
Save ralphtheninja/8dbc88f56e727fe467108df413241106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onGotAllSlices(docdataSlices, access_token) { | |
updateStatus('handle all slices'); | |
var docdata = []; | |
for (var i = 0; i < docdataSlices.length; i++) { | |
docdata = docdata.concat(docdataSlices[i]); | |
} | |
var fileContent = new String(); | |
for (var j = 0; j < docdata.length; j++) { | |
fileContent += String.fromCharCode(docdata[j]); | |
} | |
uploadDocument(access_token, fileContent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment