var settings = {
"url": "https://service.belladati.com/bi/mediaapi:upload",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "JSESSIONID=node011fmc7x1mreicnb0tc7hjqnow0.node0"
},
"data": {
"data": "base64 encoded data",
"filename": "abc",
"contentType": "application/pdf"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
}); |