Error passing a byte[] to a postgresql c function.

Error passing a byte[] to a postgresql c function.

Postby alfrye » Tue 23 Nov 2010 22:17

I have postgresql c function that accepts a parameter of type bytea,

In my app I am opening a binary file and reading it using stream.read and the trying to pass the byte [] to the function using the dotconnect for postgresql and I getting the following error .

zero-length delimited identifier at or near """"

I am also using the postgres to linq.

Thanks,
Alan
alfrye
 
Posts: 16
Joined: Wed 05 May 2010 19:39

Postby Shalex » Wed 24 Nov 2010 15:14

dotConnect for PostgreSQL includes the PgSqlBlob class to work with binary data (its description also includes a sample)
http://www.devart.com/dotconnect/postgresql/docs/?Devart.Data.PostgreSql~Devart.Data.PostgreSql.PgSqlBlob.html.

If the problem persists, please send us a small test project with the DDL/DML script to reproduce the issue in our environment.
Shalex
Devart Team
 
Posts: 7777
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for PostgreSQL