I need to send an image base64 encoded to an API. My json out put got only 10000 characters from the base64 code.
var data = new Object();
data.image= $('#image').val();
data.date = new Date($.now());
console.log(JSON.stringify(data));
$.ajax({
type: "POST",
url: app.url
data: JSON.stringify(data),
contentType: "application/json",
crossDomain: true,
xhrFields: {
withCredentials: true
},
dataType: "json",
success: function (data, status, jqXHR) {
},
error: function (jqXHR, status) {
}
});
In my console.log i've got the full string, but not in the request.
Thanks