views:

589

answers:

1

a silly question I suppose... What is the syntax in PostgeSql for inserting varbinary values? MSSQL-way when specifying binary value like 0xFFFF... did't work

+1  A: 

Given there's no "varbinary" data type in Postgres I believe you mean "bytea". Take a look at the docs about the way to specify "bytea" literals.

Depending on the language and the bindings you use there could be more sophisticated ways for transferring binary data - you could find a .Net/C#/Npgsql example here (under "Working with binary data and bytea datatype").

Milen A. Radev
thanksthat was exhaustive answerps luckily I use NHibernate to deal with all DB things)