Using Jquery Ajax to save image in blob


I need some help with uploading image to mysql blob field using PHP and Ajax.

I've created the form and and did the ajax request. But I'm not sure how I can get the image from ajax request and save it.

Here is form.


Here is my ajax

$(document).on("click" ".sucess" function() {   var customerID = $(this).parent().find('input[name="customerId"]').val();   console.log(1);   alert (customerID);
//send ajax request   jQuery.ajax({   url: "../data/stock.php?action=stock-image-upload