Arman Hayots
Arman Hayots

Reputation: 2508

How write/read binary data from PostgreSQL?

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

Answers (1)

calinaadi
calinaadi

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

Related Questions