- Mailing list pgsql-general

From wlj
Subject
Date
Msg-id 01fb01c2522d$03f307a0$2327a8c0@tos1.nets.com.cn
Whole thread Raw
List pgsql-general
how to use the bytea type of postgres in c language.
please give me a example.
 
i did it like this ,but it didn't work
 
...
FILE *file;
char ch[3000];
 
file=fopen("pic.jpg","r");
memset(cr.0,sizeof(cr);
fgets(cr,2999,file);
...
exec sql insert into table_test(1,:cr); //table_test(id numeric,file bytea)
 
 

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: CREATE INDEX .. ON table1 (field1 asc, field2 desc)
Next
From: Bruce Momjian
Date:
Subject: Re: pgsql on jaguar (os x 10.2)