Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Store/Retrieve blob using tiodbc in c++ (no replies)

$
0
0
//WRONG forum sorry. moved already.

Hi All,

I was wondering if you have a simple code on storing/retrieving blob.

I have managed to store blob using tiodbc but the stored data is always bigger a few bytes. if i have a text file, the stored data will be the text in the file plus few bytes of junk.

I convert my file to an array of unsigned char then bind the whole array and execute.
execution always successful but stored data is always few bytes larger.

i have also a code to retrieve blob, but its only able to retrieve small data(less than 1kb), bigger than 1kb the rest of the file will be junk characters.
Similar to the way i store, i retrieve the data and save it to an array of unsigned char at once, ie no loop or whatsoever.

Any idea?

Thanx in advance
asa

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>