I have a similar problem with VB6 and postgre to read a text stored in a bytea field. When desire to read a registry I see the content of the fields except the bytea. it gives to the error Space of insufficient storage to complete this operation. the error is with the instruction: