Managed to parse an xml file with jquery and bring back the Photo tag string and display it in a p tag. (really long text) But want to decode/display the long text in image form. Please help...
<?xml version="1.0" standalone="yes"?>
<SuperStarReport>
<Record>
<FullName>Jo Bloggs</FullName>
<Photo>/9j/4AAQSkZJRgABAQEAYABgA..(long text)..fswafaw</Photo>
(From separate XML file)
$.ajax({
url: 'xml/PhotoAsXML.xml',
dataType: 'xml',
success: function(data) {
$(data).find('SuperStarReport Record').each(function(){
var status = $(this).find('Photo').text();
console.log(status);
$('.timeline p').append(
$('<p />', {
text: status
})
);
});
},
error: function() {
$('.pic').text('failed to get feed');
}
});