RE: INSERT blob data in C

2002-02-28 Thread Kenneth Hylton
L PROTECTED]> -Original Message- From: paradoxix [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 3:04 PM To: Kenneth Hylton Cc: [EMAIL PROTECTED] Subject:Re: IN

Re: INSERT blob data in C

2002-02-28 Thread paradoxix
just some code I did some time ago: /* */ #include #include #include #include #include #include MYSQL dbcon; int main(int argc, char *argv[]) { int i; char *tmpQ=malloc(2*1024*1024); char *end; int file; int size; char *mem; char tmpstr[1024]; mysql_init(&dbcon); mys

INSERT blob data in C

2002-02-28 Thread Kenneth Hylton
Howdy - I looked in the doc @ mysql.com and the New Riders and O'Reilly MySQL books. Plus, I consulted the archives as best I could and did not see an answer for this: How do you insert binary data using the C API? I know you need to use mysql_real_query method and pass length, but how do you