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 da
You need to base64 encode the data. This is required and ensures that charset conversions don't touch the data.
The correct code should be
$imgData = base64_encode($byteArray); $img = ""; print($img);