When I am submitting base64 via jquery and ajax, my string breaking in junks, If I print in the php page.
function add_to_report(){
$('#search_loader').fadeIn();
var report_comment = ($('#report_comment').val()) ? $('#report_comment').val() : 'No comments';
var imgData = $('#chart1').jqplotToImageStr({}); // given the div id of your plot, get the img data
$('#image_string').val(imgData);
var complete_string = $('#selected_classes_string').val()+''+report_comment;
console.log(imgData);
$.ajax({
type : "POST",
url : 'save_to_report.php',
data : $("#image_form").serialize(), // serializes the form's elements.
success : function(data){
}
});
}