Hi Vassilis,
You are missing after the draw() the following:
//send image to stdout (browser), without saving file locally
echo $oImage ->getBytes();
I also prefer to set the header right before that getBytes() call.
For a full working example, you can use the quickmap.php file that is
Dear all,
We are using Mapserver 8.0.1 with PHP and the php_mapscriptng extension.
I am having a hard time outputting the image to the browser.
In the following code snippet, saving to disk works but
mapscript.imageObj.write does not output the image in the browser.
header('Content-type: