IBPP::Blob l_Blob = IBPP::BlobFactory(rp->iDb, rp->iTr); rp->iSt->Get(i, l_Blob); QByteArray l_QBlob; l_Blob->Open(); int l_Read, l_Offset = 0; char buffer[1024]; while ((l_Read = l_Blob->Read(buffer, 1024))) { l_QBlob.resize(l_QBlob.size() + l_Read); memcpy(l_QBlob.data() + l_Offset, buffer, l_Read); l_Offset += l_Read; } l_Blob->Close(); row[idx] = l_QBlob; break;
IBPP::Blob blob = IBPP::BlobFactory(m_Database->getIBPPDB(), m_Transaction->getIBPPTransaction()); m_Statement->Get(FieldNum, blob); blob->Open(); int bytesTotal; int largestChunkSize; int segmentsTotal; int chunkSize; int bytesRead = 0; blob->Info(&bytesTotal, &largestChunkSize, &segmentsTotal); data->resize(bytesTotal); do { chunkSize = (bytesTotal - bytesRead) < largestChunkSize ? (bytesTotal - bytesRead) : largestChunkSize; bytesRead = blob->Read((void*)data->data(), chunkSize); } while (bytesTotal != bytesRead); blob->Close();
int QFBResult::numRowsAffected(){ int nra = -1; //if (isSelect()) // return nra; try { nra = rp->iSt->AffectedRows(); } catch (IBPP::Exception& e) {} return nra;}
int QFBResult::size(){ int nra = -1; return nra;...