4 messages in com.mysql.lists.plusplusStoring BLOB using C constructs and n...
FromSent OnAttachments
Ankur G35 Saxena19 Nov 2006 12:16 
Warren Young20 Nov 2006 08:57 
Ankur G35 Saxena20 Nov 2006 12:13 
Warren Young20 Nov 2006 12:48 
Subject:Storing BLOB using C constructs and no STL(string, streams etc)
From:Ankur G35 Saxena (g35r@gmail.com)
Date:11/19/2006 12:16:51 PM
List:com.mysql.lists.plusplus

Hi,

I need help in convertin this piece of code in C strings rather than streams and strings. can someone please help me out with the use of escape in char*.

c_struct is a C structure with some char buffers and int values.

string fill((char*)c_struct, len);

setQ << "UPDATE Info.Paid SET InfoStruct=\"" << mysqlpp::escape << fill << "\" WHERE ID='" << val_chk << "'" << ends;

Thanks. Ankur