Upon receiving data from a file upload, it appears in the following format:
data:application/pdf;base64,JVBERi0xLjcNCiW1tbW1D...
To include this file upload data along with other parameters, I need to convert it to a string binary. For example:
var arraytosend = [{"id" : 0111,
"file" : binary data here}]
Despite my attempts, I have been unsuccessful in converting the base64 data to binary.