我想通过直接 SQL 查询 (SQLCommand) 以二进制格式(PostgreSQL 中的 varbinary/binary/etc 和 C# 中的 byte[])写入/读取哈希值,但不知道该怎么做。
最佳答案
您可以使用 Devart 作为 PostgreSQL 的 ADO.NET 提供程序,然后执行类似以下操作: http://www.devart.com/dotconnect/postgresql/docs/Devart.Data.PostgreSql~Devart.Data.PostgreSql.PgSqlBlob.html
关于c# - 如何从 PostgreSQL 写入/读取二进制数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10772393/