在php中解码数据URL

I need to decode a data url in PHP .This data url is obtained via ajax. I have used file reader to get the encoded data URL of an image.This data URL is passed to PHP via ajax:

$.ajax({
    url: app,
    async: false,
    type:"POST",
    data : "file="+strGlobalImageData,
    dataType: "jsonp",
    contentType: 'application/x-www-form-urlencoded',
    processData:false,
    jsonp: "jsoncallback",
    success: function(html){
        alert("Thank you. We will be in touch with you");
    },
    error: function(){
        alert("Thank you. We will be in touch with you");
    }
});

How will I do this?

$image =$_POST['file'] ;

Was this something you were looking for? Let me know