1

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.

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

I'm connecting to PostgreSQL through Npgsql

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.