Edit in JSFiddle

$.ajax({
    url: "https://www.ebi.ac.uk/chembl/api/data/image/CHEMBL1",
    headers: {'X-Requested-With': 'XMLHttpRequest'},
    cache: false,
    success: function(data){
        $('#result').attr('src', 'data:image/png;base64,' + data);
    }
})
<img id="result" />