Hello!
My program stores images in mysql blob field.

I can retrieve it into char* and I know it's length.

To make a backup of that data I need to convert it to something like this:

0x234cb6244db7264fb92750ba2e57c12f58c2315ac4335cc62b5bc729

I tried something like this:
Code:
 char* szStop;
 strtol( str, &szStop, 16 );
std::cout << szStop;
But the output is not what I wanted. How do I convert it properly?

Thanks in advance!

Leonti