Reputation: 2508
I want write/read hashes in binary format (varbinary/binary/etc in PostgreSQL and byte[] in C#) via direct SQL query (SQLCommand), but don't know how do that.
Upvotes: 1
Views: 2390
Reputation: 1466
You could use Devart as ADO.NET provider for PostgreSQL and then do something similar to: http://www.devart.com/dotconnect/postgresql/docs/Devart.Data.PostgreSql~Devart.Data.PostgreSql.PgSqlBlob.html
Upvotes: 1