PLEASE HELP ME!!!binary in text/varchar? - Mailing list pgsql-interfaces

From Swaminathan Natarajan
Subject PLEASE HELP ME!!!binary in text/varchar?
Date
Msg-id Pine.LNX.4.10.10103291530520.31907-100000@mickey.dcs.uky.edu
Whole thread Raw
List pgsql-interfaces
Hi there!

I am using pgsql 7.0/ecpg C interface on Redhat 6.1.
Is it possible to store and retrieve fixed length binary data (<100bytes
in length) in text or varchar (or any other data type)? Using ecpg, I want
to "memcpy" from my local variable to a field in the table and back.
Postgresql seems to do a "strcpy" instead. If someone can help me, I
would greatly appreciate it! I checked the archives and examples but found
no relevant articles.

THANKS!!!
Swami. 





pgsql-interfaces by date:

Previous
From: "NSB)Hiroshi Kasamatsu"
Date:
Subject: JDBC connection by crontab
Next
From: "Apostolos B. STERGIOPOULOS"
Date:
Subject: Re: need help with errors in ODBC log