5 messages in com.mysql.lists.win32Problens to retrieve Blob Data in MyS...
FromSent OnAttachments
hradec.com27 Oct 2003 14:40 
hradec.com28 Oct 2003 03:26 
mys...@hradec.com28 Oct 2003 12:34 
Erich Dollansky29 Oct 2003 16:46 
hradec.com29 Oct 2003 17:08 
Subject:Problens to retrieve Blob Data in MySQL C API!
From:hradec.com (hra@hradec.com)
Date:10/28/2003 03:26:49 AM
List:com.mysql.lists.win32

Could anyone point me an example on how to retrieve blob data from a Mysql table using MySql C API?

I´m having troubles to retrieve with a standard mysql_query. I don’t know why, but it seens that only the 4 first bytes of tha blob collum are retrieved (exact the 4 first before a 0 char), just like a standard string. If I try to access the data after the 5o. byte, I got wrong data, and sometimes a crash because a illegal memory access. Its seens that C API only store the Blob data untill found a 0 char, just like a string, not all the binary data. The more bizzare thing, is that the mysql_fetch_lengths returns the exact BINARY size, not the string size. Very weird.

Any help would be much appreciated!!!

Thanks in advance

Cheers