title: Reading Image from AJAX response
body: <p>I have a url that when requested will return an image. I want the url to be requested through an AJAX request. The ajax request returns binary data which is what is being deplayed. but i want the actual image displayed not the binary data. Am using php on the server side and i have set the below headers:</p>
  
  <pre><code>header("Cache-Control: no-cache, must-revalidate");
  header ("Content-type: text/jpg; charset=windows-1251");
  </code></pre>
  
  <p>Please i need advise on what i need to do.</p>