I Would like to get the data from a post request an pass it onto an img tag. I know i could do it with an get request but i kinda need to use a post request to send the location of the file.
$.post('/getImage',{location: 'image.jpg'} ,function(image) {
$('body').append('<img src=\'image\'></img>');
}
So is there any way to set the data from the post request to the img tag? The post request works just so you know so i don't need any help setting that up