<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=189363200-22012007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=189363200-22012007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=189363200-22012007>I don't think you 
can tostring() the $byteReader because&nbsp;$renderSrvc-&gt;RenderMap() is 
returning an image and not an xml document. (this is from observations in 
mapagent).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=189363200-22012007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=189363200-22012007>Try using the read() 
method of $byteReader and copying the byte array into a php image object (I know 
.net has an Image object. I don't know if php has something 
similar)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN 
class=005021001-13102006></SPAN></FONT><FONT face="Lucida Sans Unicode" 
size=2>Regards,</FONT></DIV>
<P align=left><FONT face="Lucida Sans Unicode" size=2>Jackie Ng</FONT></P>
<P align=left><FONT face="Lucida Sans Unicode" color=#0000ff size=2>AEC Spatial 
Pty Ltd. / AEC Systems Pty Ltd.</FONT><BR><SPAN lang=en-au><FONT 
face="Lucida Sans Unicode" color=#0000ff size=2>SYDNEY - MELBOURNE - BRISBANE - 
PERTH - HOBART</FONT></SPAN> <FONT face="Lucida Sans Unicode" color=#0000ff 
size=2>- AUCKLAND (NZ)</FONT><SPAN lang=en-au></P>
<P align=left><FONT face="Lucida Sans Unicode" color=#0000ff size=2>A.B.N: 32 
075 809 451</FONT></P></SPAN>
<P align=left><SPAN lang=en-au><FONT face="Lucida Sans Unicode" color=#0000ff 
size=2>Level 4, 37-41 Prospect St. Box Hill, Victoria, 3128</FONT></SPAN></P>
<P align=left><SPAN lang=en-au><FONT face="Lucida Sans Unicode" size=2>Phone: 
1300 368 609</FONT></SPAN> <BR><SPAN lang=en-au><FONT face="Lucida Sans Unicode" 
size=2>Fax: &nbsp;&nbsp; 1300 362 140</FONT></SPAN> </P>
<P align=left><SPAN lang=en-au><FONT face="Lucida Sans Unicode" 
size=2>www.aecsystems.com.au</FONT></SPAN> <BR><FONT face=Arial size=2><A 
title=mailto:jackie.ng@aecsystems.com.au 
href="blocked::mailto:jackie.ng@aecsystems.com.au">jackie.ng@aecsystems.com.au</A></FONT></P></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>