<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2838" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i am trying to retrieve binary content of a bytea 
field (or postgis geometry field) with a binary cursor with PHP :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$sql="BEGIN;DECLARE mycursor BINARY CURSOR FOR 
SELECT shape FROM $layerName; fetch all in mycursor;"</FONT></DIV>
<DIV><FONT face=Arial size=2>....pg_query... </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But my shape field shows only two bytes of 
data.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Does someone know if it is a current PHP 
restriction ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks by advance,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Eric 
</FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTML>