mysql blob解密_mysql blob导出文本解密

blob数据:3132332C31332C302C362C302C312C392C342C352C32302C342C31312C31302C302C

#include

#include

#include

using namespace std;

void   main()

{

FILE   *pt;

if((pt=fopen( "d:\\test2.txt ",   "a+ "))==NULL)

{

cout << "erro " <

}

char   ch;

int i=1;

while((ch=fgetc(pt))!=EOF)

{

if(i%2==0)

{

if(ch=='C')

cout<

else

cout <

}

i++;

}

fclose(pt);

getchar();

}

解密结果

12,0,0,0,0,0,0,0,0,0,0,0,0,

#include #include #include using namespace std; void   main() {  FILE   *pt;  if((pt=fopen( "d:\\test2.txt ",   "a+ "))==NULL)  {   cout << "erro " <

你可能感兴趣的:(mysql,blob解密)