I use a JQuery library for cropping images , after click on crop button, Cropped image (result) is send back to HTML page via AJAX as "file data", Something like this:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAA
CMCAYAAACuwEE+AAAgAElEQVR4nOy8d7hdVZ3/z/xmfH4z83y...
I want to sent this result to server as normal image file, but i don't know how to "attach" data to <input type="file" name="image" id="ajaxresult" hidden> .
I tried $("#ajaxresult").value(result); , but no luck. server says its null.