我想读出来, 放到一个char buf[]中, 应该怎么做?谢谢我用下面的代码写进数据库去了 int countofchar = 100; unsigned char data[100]; for (int i = 0; i < countofchar; i++) { data = (unsigned char) i; } VARIANT varBLOB; SAFEARRAY *psa; SAFEARRAYBOUND rgsabound[1]; rgsabound[0].lLbound = 0; rgsabound[0].cElements = countofchar; psa = SafeArrayCreate(VT_UI1, 1, rgsabound); BYTE* pByte; if(SafeArrayAccessData(psa,(void**)&pByte) == NOERROR) memcpy((LPVOID)pByte,(LPVOID)&data, countofchar); SafeArrayUnaccessData(psa); varBLOB.vt = VT_ARRAY | VT_UI1; varBLOB.parray = psa; Q->Close(); Q->SQL->Clear(); Q->SQL->Text = "select * from abc"; Q->Open(); Q->Append(); Q->FieldByName("test")->AsVariant = varBLOB; Q->Post();现在我想读出来, 放到一个char buf[]中, 应该怎么做?谢谢