title: Converting a byte array into an image using PHP and HTML
body: <p>I'm using PHP to retrieve data from a SOAP service, part of which is a byte array of an image encoded in base64, and I'd like to display that image in the browser.  The data retrieval step works fine, but I can't find a single way to display this image in the browser.<br>
     Assuming that the byte array is stored in PHP as $byteArray:</p>
  
  <pre><code>$img = "&lt;img src= 'data:image/jpeg;base64, $byteArray' /&gt;";
  print($img);
  </code></pre>
  
  <p>I'd expect that code to display an image in the broswer, but the parser for the browser keeps failing.  Any idea what I'm doing wrong?  </p>
  
  <p>An example byteArray that I've used here would be: "[B@14a3da8"</p>
  
  <p>Thanks in advance,
     Brian</p>